code: def get_model_dir_by_type(
      output_uri: str, model_type: str, is_old_artifact: bool = False
  ) -> str:
      """Returns directly for exported model depending on model_type."""
      if model_type == path_constants.TFMA_EVAL:
          return eval_model_dir(output_uri, is_old_artifact)
      else:
          return serving_model_dir(output_uri, is_old_artifact)
  
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 5 for calling a global function with example usage: get_model_dir_by_type(output_uri, model_type, is_old_artifact) and returns: eval_model_dir, serving_model_dir