code: def is_artifact_version_older_than(
      artifact: _Artifact, artifact_version: str
  ) -> bool:
      """Check if artifact belongs to old version."""
      if (
          artifact.mlmd_artifact.state
          == metadata_store_pb2.Artifact.UNKNOWN
      ):
          # Newly generated artifact should use the latest artifact payload format.
          return False
  
      # For artifact that resolved from MLMD.
      if not artifact.has_custom_property(
          ARTIFACT_TFX_VERSION_CUSTOM_PROPERTY_KEY
      ):
          # Artifact without version.
          return True
  
      # Artifact with old version
      return bool(
          version.parse(
              artifact.get_string_custom_property(
                  ARTIFACT_TFX_VERSION_CUSTOM_PROPERTY_KEY
              )
          )
          < version.parse(artifact_version)
      )
  
file_path: tfx/tfx/types/standard_artifact_utils.py
imports: import json
  import os
  import re
  from typing import List
  from absl import logging
  from packaging import version
  from tfx.types import artifact
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: is_artifact_version_older_than(artifact, artifact_version) and returns: bool, False, True