code: def test_vertex_to_object_trial_component(sagemaker_session):
      tc_arn = "arn:aws:sagemaker:us-west-2:963951943925:trial-component/abaloneprocess-ixyt08z3ru-aws-processing-job"
      vertex = Vertex(
          arn=tc_arn,
          lineage_entity=LineageEntityEnum.TRIAL_COMPONENT.value,
          lineage_source=LineageSourceEnum.TRANSFORM_JOB.value,
          sagemaker_session=sagemaker_session,
      )
  
      sagemaker_session.sagemaker_client.describe_trial_component.return_value = {
          "TrialComponentName": "MyTrialComponent",
          "TrialComponentArn": tc_arn,
          "Source": {
              "SourceUri": "arn:aws:sagemaker:us-west-2:0123456789012:model/my_trial_component",
              "SourceType": "ARN",
              "SourceId": "Thu Dec 17 17:16:24 UTC 2020",
          },
          "TrialComponentType": "ModelDeployment",
          "Properties": {
              "PipelineExecutionArn": "arn:aws:sagemaker:us-west-2:0123456789012:\
                  pipeline/mypipeline/execution/0irnteql64d0",
              "PipelineStepName": "MyStep",
              "Status": "Completed",
          },
          "CreationTime": 1608225384.0,
          "CreatedBy": {},
          "LastModifiedTime": 1608225384.0,
          "LastModifiedBy": {},
      }
  
      trial_component = vertex.to_lineage_object()
  
      expected_calls = [
          unittest.mock.call(
              TrialComponentName="abaloneprocess-ixyt08z3ru-aws-processing-job"
          ),
      ]
      assert (
          expected_calls
          == sagemaker_session.sagemaker_client.describe_trial_component.mock_calls
      )
  
      assert trial_component.trial_component_arn == tc_arn
      assert trial_component.trial_component_name == "MyTrialComponent"
      assert isinstance(trial_component, LineageTrialComponent)
  
imports: from __future__ import absolute_import
  import unittest.mock
  from sagemaker.lineage.artifact import DatasetArtifact, ModelArtifact, Artifact
  from sagemaker.lineage.context import EndpointContext, Context
  from sagemaker.lineage.action import Action
  from sagemaker.lineage.lineage_trial_component import LineageTrialComponent
  from sagemaker.lineage.query import LineageEntityEnum, LineageSourceEnum, Vertex, LineageQuery
  import pytest
  import re
label_desc: Use image node_id 7 for calling a global function with example usage: test_vertex_to_object_trial_component(sagemaker_session) without return types