code: def serving_model_path(
      output_uri: str, is_old_artifact: bool = False
  ) -> str:
      """Returns path for exported serving model."""
      model_dir = serving_model_dir(output_uri, is_old_artifact)
      export_dir = os.path.join(model_dir, "export")
      if fileio.exists(export_dir):
          # TODO(b/160795287): Deprecate estimator based executor.
          absl.logging.warning(
              "Support for estimator-based executor and model export"
              " will be deprecated soon. Please use export structure "
              '<ModelExportPath>/serving_model_dir/saved_model.pb"'
          )
          model_dir = io_utils.get_only_uri_in_dir(export_dir)
          return io_utils.get_only_uri_in_dir(model_dir)
      else:
          # If dir doesn't match estimator structure, use serving model root directly.
          return model_dir
  
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 6 for calling a global function with example usage: serving_model_path(output_uri, is_old_artifact) and returns: io_utils, model_dir