code: def test_create_docker_with_requirements(self):
      self.setup()
      req_file = os.path.join(tempfile.mkdtemp(), "requirements.txt")
      with open(req_file, "w") as f:
          f.writelines(["tensorflow-datasets"])
  
      lcb = containerize.LocalContainerBuilder(
          self.entry_point,
          None,
          self.chief_config,
          self.worker_config,
          requirements_txt=req_file,
      )
      lcb._create_docker_file()
  
      expected_docker_file_lines = [
          "FROM tensorflow/tensorflow:{}-gpu\n".format(_TF_VERSION),
          "WORKDIR /app/\n",
          "COPY /app/requirements.txt /app/requirements.txt\n",
          "RUN if [ -e requirements.txt ]; "
          "then pip install --no-cache -r requirements.txt; fi\n",
          "COPY /app/ /app/\n",
          'ENTRYPOINT ["python", "sample.py"]',
      ]
      self.assert_docker_file(
          expected_docker_file_lines, lcb.docker_file_path
      )
  
      os.remove(req_file)
      self.cleanup(lcb.docker_file_path)
  
imports: import os
  import tempfile
  import uuid
  from absl.testing import absltest
  import docker
  import mock
  from tensorflow_cloud.core import containerize
  from tensorflow_cloud.core import docker_config
  from tensorflow_cloud.core import gcp
  from tensorflow_cloud.core import machine_config
  from tensorflow_cloud.utils import google_api_client
  from tensorflow_cloud.utils import tf_utils
label_desc: Use image node_id 5 for calling the TestContainerize obj's underlying member method code with example usage: obj.test_create_docker_with_requirements() without return types