code: def create_Dockerfile(
      output_directory,
      models_included=None,
      module_name=None,
      deepneuro_branch="master",
  ):
      current_dir = os.path.realpath(os.path.dirname(__file__))
      base_Dockerfile = os.path.join(current_dir, "Dockerfile_base")
      new_Dockerfile = os.path.join(output_directory, "Dockerfile")
  
      copy(base_Dockerfile, new_Dockerfile)
  
      echo_count = os.path.join(current_dir, "echo_count.txt")
      with open(echo_count, "r") as myfile:
          echo_count = myfile.read()
  
      with open(new_Dockerfile, "a") as writefile:
          if models_included is not None:
              if module_name is None:
                  raise ValueError(
                      "If you are including models in your container, please include the module_name parameter."
                  )
  
              writefile.write(
                  "RUN mkdir -p /home/DeepNeuro/deepneuro/load/{}\n".format(
                      module_name
                  )
              )
  
              for key, value in models_included.items():
                  writefile.write(
                      """RUN wget -O /home/DeepNeuro/deepneuro/load/{}/{}.h5 {}""".format(
                          module_name, key, value
                      )
                  )
  
          writefile.write(
              """
          RUN echo {} \n
          RUN git pull \n
          RUN python3 /home/DeepNeuro/setup.py develop \n
  \n
          # Commands at startup. \n
          WORKDIR "/" \n
          RUN chmod 777 /home/DeepNeuro/entrypoint.sh \n
          ENTRYPOINT ["/home/DeepNeuro/entrypoint.sh"]""".format(
                  echo_count
              )
          )
  
      return new_Dockerfile
  
file_path: DeepNeuro/deepneuro/pipelines/shared.py
imports: import os
  import sys
  import argparse
  from shutil import copy
  from deepneuro.data.data_collection import DataCollection
  from deepneuro.container.container_cli import nvidia_docker_wrapper
label_desc: Use image node_id 2 for calling a global function with example usage: create_Dockerfile(output_directory, models_included, module_name, deepneuro_branch) and returns: new_Dockerfile