docstr: Helper function returns executions under a given pipeline name.
docstr_tok: ["Helper","function","returns","executions","under","a","given","pipeline","name","."]
code: def _get_executions_by_pipeline_name(
      self, pipeline_name: str
  ) -> List[metadata_store_pb2.Execution]:
      """Helper function returns executions under a given pipeline name."""
      # step 1: get context id by context name
      request = (
          metadata_store_service_pb2.GetContextByTypeAndNameRequest(
              type_name="pipeline", context_name=pipeline_name
          )
      )
      context_id = self._stub.GetContextByTypeAndName(
          request
      ).context.id
      # step 2: get executions by context id
      request = (
          metadata_store_service_pb2.GetExecutionsByContextRequest(
              context_id=context_id
          )
      )
      return self._stub.GetExecutionsByContext(request).executions
  
imports: import os
  import subprocess
  import time
  from typing import List
  from absl import logging
  from grpc import insecure_channel
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.orchestration import test_utils
  from tfx.orchestration.experimental.core.testing import test_dynamic_exec_properties_pipeline
  from tfx.orchestration.kubeflow import test_utils
  from tfx.orchestration.test_pipelines import download_grep_print_pipeline
  from tfx.types import standard_artifacts
  from ml_metadata.proto import metadata_store_pb2
  from ml_metadata.proto import metadata_store_service_pb2
  from ml_metadata.proto import metadata_store_service_pb2_grpc
label_desc: Use image node_id 7 for calling the KubeflowEndToEndTest obj's underlying member method code with example usage: obj._get_executions_by_pipeline_name(pipeline_name) and returns: self