code: def write_functions(self):
          '''
          Writes out a python function for each WDL "task" object.
  
          :return: a giant string containing the meat of the job defs.
          '''
  
          # toil cannot technically start with multiple jobs, so an empty
          # 'initialize_jobs' function is always called first to get around this
          fn_section = 'def initialize_jobs(job):\n' + \
                       '    job.fileStore.logToMaster("initialize_jobs")\n'
  
          for job in self.tasks_dictionary:
              fn_section += self.write_function(job)
  
          for wf in self.workflows_dictionary:
              for assignment in self.workflows_dictionary[wf]:
                  if assignment.startswith('scatter'):
                      fn_section += self.write_scatterfunction(self.workflows_dictionary[wf][assignment], assignment)
                  if assignment.startswith('if'):
                      fn_section += self.write_scatterfunctions_within_if(self.workflows_dictionary[wf][assignment]['body'])
  
          return fn_sectiof write_functions(self):
          '''
          Writes out a python function for each WDL "task" object.
  
          :return: a giant string containing the meat of the job defs.
          '''
  
          # toil cannot technically start with multiple jobs, so an empty
          # 'initialize_jobs' function is always called first to get around this
          fn_section = 'def initialize_jobs(job):\n' + \
                       '    job.fileStore.logToMaster("initialize_jobs")\n'
  
          for job in self.tasks_dictionary:
              fn_section += self.write_function(job)
  
          for wf in self.workflows_dictionary:
              for assignment in self.workflows_dictionary[wf]:
                  if assignment.startswith('scatter'):
                      fn_section += self.write_scatterfunction(self.workflows_dictionary[wf][assignment], assignment)
                  if assignment.startswith('if'):
                      fn_section += self.write_scatterfunctions_within_if(self.workflows_dictionary[wf][assignment]['body'])
  
          return fn_section
docs: Writes out a python function for each WDL "task" object.
  
          :return: a giant string containing the meat of the job defs.