code: def testEphemeralPackage(self, mock_mkdtemp):
      mock_mkdtemp.return_value = self._tmp_dir
      if os.environ.get("TEST_UNDECLARED_OUTPUTS_DIR"):
          # This test requires setuptools which is not available.
          logging.info("Skipping testEphemeralPackage")
          return
      package = dependency_utils.build_ephemeral_package()
      self.assertRegex(
          os.path.basename(package), r"tfx_ephemeral-.*\.tar.gz"
      )
  
file_path: tfx/tfx/utils/dependency_utils_test.py
imports: import os
  import sys
  from unittest import mock
  from absl import logging
  from absl.testing import parameterized
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.utils import dependency_utils
label_desc: Use image node_id 4 for calling the DependencyUtilsTest obj's underlying member method code with example usage: obj.testEphemeralPackage(mock_mkdtemp) without return types