code: def setUp(self):
      super().setUp()
      self.init_mlmd()
  
      self.pipeline_name = "pipeline-name"
      self.pipeline_context = self.put_context(
          "pipeline", self.pipeline_name
      )
  
      spans_and_versions = [(1, 0), (2, 0), (3, 0)]
      example_gen_context = self.build_node_context(
          self.pipeline_name, "example-gen.import-examples"
      )
      self.examples = self.create_examples(
          spans_and_versions,
          contexts=[self.pipeline_context, example_gen_context],
      )
  
      transform_context = self.build_node_context(
          self.pipeline_name, "transform.my-transform"
      )
      self.transform_graph = self.transform_examples(
          self.examples,
          contexts=[self.pipeline_context, transform_context],
      )
  
      # Train using the Examples and TransformGraph.
      trainer_context = self.build_node_context(
          self.pipeline_name, "tf-trainer.palm-model"
      )
      self.model = self.prepare_tfx_artifact(
          test_utils.Model,
      )
      self.train_on_examples(
          model=self.model,
          examples=self.examples,
          transform_graph=self.transform_graph,
          contexts=[self.pipeline_context, trainer_context],
      )
  
      # Bless the Model twice.
      evaluator_context = self.build_node_context(
          self.pipeline_name, "evaluator.my-evaluator"
      )
      self.model_blessing_1 = self.evaluator_bless_model(
          self.model,
          contexts=[self.pipeline_context, evaluator_context],
      )
      self.model_blessing_2 = self.evaluator_bless_model(
          self.model,
          contexts=[self.pipeline_context, evaluator_context],
      )
  
      # Push the Model.
      pusher_context = self.build_node_context(
          self.pipeline_name, "servomatic-pusher.my-pusher"
      )
      self.model_push = self.push_model(
          self.model,
          contexts=[self.pipeline_context, pusher_context],
      )
  
file_path: tfx/tfx/dsl/input_resolution/ops/graph_traversal_op_test.py
imports: from typing import Sequence
  import tensorflow
  from tfx import types
  from tfx.dsl.input_resolution.ops import ops
  from tfx.dsl.input_resolution.ops import test_utils
label_desc: Use image node_id 3 for calling the GraphTraversalOpTest obj's underlying member method code with example usage: obj.setUp() without return types