code: def test_vertex_to_model_artifact(sagemaker_session):
      vertex = Vertex(
          arn="arn:aws:sagemaker:us-west-2:0123456789012:artifact/e66eef7f19c05e75284089183491bd4f",
          lineage_entity=LineageEntityEnum.ARTIFACT.value,
          lineage_source=LineageSourceEnum.MODEL.value,
          sagemaker_session=sagemaker_session,
      )
  
      sagemaker_session.sagemaker_client.describe_artifact.return_value = {
          "ArtifactArn": "arn:aws:sagemaker:us-west-2:0123456789012:artifact/e66eef7f19c05e75284089183491bd4f",
          "Source": {
              "SourceUri": "246618743249.dkr.ecr.us-west-2.amazonaws.com/sagemaker-scikit-learn:0.23-1-cpu-py3",
              "SourceTypes": [],
          },
          "ArtifactType": "Image",
          "Properties": {},
          "CreationTime": 1608224704.149,
          "CreatedBy": {},
          "LastModifiedTime": 1608224704.149,
          "LastModifiedBy": {},
      }
  
      artifact = vertex.to_lineage_object()
  
      assert (
          artifact.artifact_arn
          == "arn:aws:sagemaker:us-west-2:0123456789012:artifact/e66eef7f19c05e75284089183491bd4f"
      )
      assert isinstance(artifact, ModelArtifact)
  
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 11 for calling a global function with example usage: test_vertex_to_model_artifact(sagemaker_session) without return types