class_docstr: A helper class to compute and plot lineage of ml-metadata artifacts.
class_docstr_tok: ["A","helper","class","to","compute","and","plot","lineage","of","ml-metadata","artifacts","."]
docstr: Returns a list of artifact_ids that were inputs for `execution_id`.
docstr_tok: ["Returns","a","list","of","artifact_ids","that","were","inputs","for","`","execution_id","`","."]
code: def _get_upstream_artifact_ids(self, execution_id):
      """Returns a list of artifact_ids that were inputs for `execution_id`."""
      events = self.metadata_store.get_events_by_execution_ids(
          [execution_id]
      )
      return [e.artifact_id for e in events if _is_input_event(e)]
  
imports: import re
  from IPython.display import display_html
  import matplotlib.pyplot
  import networkx
  import pandas
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 3 for calling the _LineageGraphHelper obj's underlying member method code with example usage: obj._get_upstream_artifact_ids(execution_id) and returns: unknown