code: def testEstimatorModelPath(self, is_old_artifact):
      # Create folders based on Estimator based Trainer output model directory,
      # after Executor performs cleaning.
      output_uri = os.path.join(self.get_temp_dir(), "model_dir")
      eval_model_path = path_utils.eval_model_dir(
          output_uri, is_old_artifact
      )
      eval_model = os.path.join(eval_model_path, "saved_model.pb")
      io_utils.write_string_file(eval_model, "testing")
      serving_model_path = path_utils.serving_model_dir(
          output_uri, is_old_artifact
      )
      serving_model = os.path.join(eval_model_path, "saved_model.pb")
      io_utils.write_string_file(serving_model, "testing")
  
      # Test retrieving model folder.
      self.assertEqual(
          eval_model_path,
          path_utils.eval_model_path(output_uri, is_old_artifact),
      )
      self.assertEqual(
          serving_model_path,
          path_utils.serving_model_path(output_uri, is_old_artifact),
      )
  
      self.assertEqual(
          eval_model_path,
          path_utils.get_model_dir_by_type(
              output_uri, path_constants.TFMA_EVAL, is_old_artifact
          ),
      )
      self.assertEqual(
          serving_model_path,
          path_utils.get_model_dir_by_type(
              output_uri, path_constants.TF_KERAS, is_old_artifact
          ),
      )
      self.assertEqual(
          serving_model_path,
          path_utils.get_model_dir_by_type(
              output_uri, path_constants.TF_GENERIC, is_old_artifact
          ),
      )
      self.assertEqual(
          serving_model_path,
          path_utils.get_model_dir_by_type(
              output_uri, path_constants.TF_ESTIMATOR, is_old_artifact
          ),
      )
      self.assertEqual(
          serving_model_path,
          path_utils.get_model_dir_by_type(
              output_uri, path_constants.TF_JS, is_old_artifact
          ),
      )
      self.assertEqual(
          serving_model_path,
          path_utils.get_model_dir_by_type(
              output_uri, path_constants.TF_LITE, is_old_artifact
          ),
      )
  
file_path: tfx/tfx/utils/path_utils_test.py
imports: import os
  from absl.testing import parameterized
  import tensorflow
  from tfx.types import standard_artifacts
  from tfx.utils import io_utils
  from tfx.utils import path_utils
  from tfx.utils import path_constants
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 1 for calling the PathUtilsTest obj's underlying member method code with example usage: obj.testEstimatorModelPath(is_old_artifact) without return types