class_docstr: A vertex for a lineage graph.
class_docstr_tok: ["A","vertex","for","a","lineage","graph","."]
docstr: Convert the ``Vertex`` object to its corresponding ``Artifact``.
docstr_tok: ["Convert","the","``","Vertex","``","object","to","its","corresponding","``","Artifact","``","."]
code: def _artifact_to_lineage_object(self):
      """Convert the ``Vertex`` object to its corresponding ``Artifact``."""
      from sagemaker.lineage.artifact import (
          Artifact,
          ModelArtifact,
          ImageArtifact,
      )
      from sagemaker.lineage.artifact import DatasetArtifact
  
      if self.lineage_source == LineageSourceEnum.MODEL.value:
          return ModelArtifact.load(
              artifact_arn=self.arn, sagemaker_session=self._session
          )
      if self.lineage_source == LineageSourceEnum.DATASET.value:
          return DatasetArtifact.load(
              artifact_arn=self.arn, sagemaker_session=self._session
          )
      if self.lineage_source == LineageSourceEnum.IMAGE.value:
          return ImageArtifact.load(
              artifact_arn=self.arn, sagemaker_session=self._session
          )
      return Artifact.load(
          artifact_arn=self.arn, sagemaker_session=self._session
      )
  
imports: from __future__ import absolute_import
  from datetime import datetime
  from enum import Enum
  from typing import Any, Optional, Union, List, Dict
  from json import dumps
  from re import sub, search
  from sagemaker.utils import get_module
  from sagemaker.lineage._utils import get_resource_name_from_arn
label_desc: Use image node_id 7 for calling the Vertex obj's underlying member method code with example usage: obj._artifact_to_lineage_object() and returns: Artifact, ModelArtifact, DatasetArtifact, ImageArtifact