The empty set is caused by calling the wrong mlmd method in the following line: execution_id_events = store.get_events_by_artifact_ids(execution_id)
See mlmd metadata store for all possible methods. If you can’t find the right one, pls let me know.
After solving the problem, could you please remove the code snippet from your question above? This is because we should avoid posting code solutions in the forums to respect the Honour Code.