def METHOD_NAME(self):
    """
    Submits the slurm script to the cluster
    """
    log_dir = "{0}/{1}".format(self._log_root, self.get_log_dirname())
    if not os.path.exists(log_dir):
        os.makedirs(log_dir)
    physical_graph_file_name = "{0}/{1}".format(log_dir, self._pip_name)
    with open(physical_graph_file_name, "w") as physical_graph_file:
        physical_graph_file.write(self._physical_graph_template_data)
        physical_graph_file.close()
    job_file_name = "{0}/jobsub.sh".format(log_dir)
    job_desc = self.create_job_desc(physical_graph_file_name)
    with open(job_file_name, "w") as job_file:
        job_file.write(job_desc)
    with open(os.path.join(log_dir, "git_commit.txt"), "w") as git_file:
        git_file.write(git_commit)
    if self._submit:
        os.chdir(log_dir)  # so that slurm logs will be dumped here
        print(subprocess.check_output(["sbatch", job_file_name]))
    else:
        print(f"Created job submission script {job_file_name}")