class_docstr: Abstract class for integration testing concrete Metadata implementations.
  
  Subclasses should override metadata() to return an instance of Metadata that
  has not been entered.
class_docstr_tok: ["Abstract","class","for","integration","testing","concrete","Metadata","implementations",".","Subclasses","should","override","metadata","(",")","to","return","an","instance","of","Metadata","that","has","not","been","entered","."]
code: def _get_all_runs(
      self, metadata_handle: metadata.Metadata, pipeline_name: str
  ):
      result = []
      for context in metadata_handle.store.get_contexts_by_type(
          metadata._CONTEXT_TYPE_PIPELINE_RUN  # pylint: disable=protected-access
      ):  # pylint: disable=protected-access
          if (
              context.properties["pipeline_name"].string_value
              == pipeline_name
          ):
              result.append(context.properties["run_id"].string_value)
      return result
  
imports: from typing import Mapping
  import tensorflow
  from tfx.orchestration import data_types
  from tfx.orchestration import metadata
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
  from tfx.types.artifact import ArtifactState
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling the MetadataTest obj's underlying member method code with example usage: obj._get_all_runs(metadata_handle, pipeline_name) and returns: result