code: def _createJobStateFile(self):
          
          jobStateFile = os.path.join(self.localTempDir, '.jobState')
          jobState = {'jobPID': os.getpid(),
                      'jobName': self.jobName,
                      'jobDir': self.localTempDir,
                      'deferredFunctions': []}
          with open(jobStateFile + '.tmp', 'wb') as fH:
              dill.dump(jobState, fH)
          os.rename(jobStateFile + '.tmp', jobStateFile)
          return jobStateFile
docs: Create the job state file for the current job and fill in the required
          values.
  
          :return: Path to the job state file
          :rtype: str