code: def setUp(self):
      super().setUp()
      self._testdata_dir = os.path.join(
          os.path.abspath(os.path.dirname(__file__)), "testdata"
      )
      # change to a temporary working dir such that
      # there is no setup.py in the working dir.
      self.enter_context(
          test_case_utils.change_working_dir(self.tmp_dir)
      )
  
      self._test_dockerfile = os.path.abspath(".test_dockerfile")
      with open(self._test_dockerfile, "w") as f:
          f.writelines(_test_dockerfile_content)
  
file_path: tfx/tfx/tools/cli/container_builder/dockerfile_test.py
imports: import contextlib
  import filecmp
  import os
  import tensorflow
  from tfx import version
  from tfx.tools.cli.container_builder import dockerfile
  from tfx.tools.cli.container_builder import labels
  from tfx.utils import test_case_utils
label_desc: Use image node_id 1 for calling the DockerfileTest obj's underlying member method code with example usage: obj.setUp() without return types