code: def is_old_model_artifact(model_artifact: artifact.Artifact) -> bool:
      """Check whether the model artifact is generated by old TFX version."""
      if model_artifact.type != standard_artifacts.Model:
          absl.logging.warning(
              f"Artifact type is not Model: {model_artifact.type}."
          )
      return artifact_utils.is_artifact_version_older_than(
          model_artifact,
          artifact_utils._ARTIFACT_VERSION_FOR_MODEL_UPDATE,
      )
  
file_path: tfx/tfx/utils/path_utils.py
imports: import os
  import absl
  from tfx.dsl.io import fileio
  from tfx.types import artifact
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
  from tfx.utils import io_utils
  from tfx.utils import path_constants
label_desc: Use image node_id 1 for calling a global function with example usage: is_old_model_artifact(model_artifact) and returns: artifact_utils