code: def test_node_uid_from_node(self):
      pipeline = pipeline_pb2.Pipeline()
      pipeline.pipeline_info.id = "pipeline"
      node = pipeline_pb2.PipelineNode()
      node.node_info.id = "Trainer"
      self.assertEqual(
          task_lib.NodeUid(
              pipeline_uid=task_lib.PipelineUid(pipeline_id="pipeline"),
              node_id="Trainer",
          ),
          task_lib.NodeUid.from_node(pipeline, node),
      )
  
file_path: tfx/tfx/orchestration/experimental/core/task_test.py
imports: import tensorflow
  from tfx.orchestration.experimental.core import task
  from tfx.orchestration.experimental.core import test_utils
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.utils import test_case_utils
label_desc: Use image node_id 1 for calling the TaskTest obj's underlying member method code with example usage: obj.test_node_uid_from_node() without return types