code: def write_scatterfunction(self, job, scattername):
          '''
          Writes out a python function for each WDL "scatter" object.
          '''
  
          scatter_outputs = self.fetch_scatter_outputs(job)
  
          # write the function header
          fn_section = self.write_scatterfunction_header(scattername)
  
          # write the scatter definitions
          fn_section += self.write_scatterfunction_lists(scatter_outputs)
  
          # write
          fn_section += self.write_scatterfunction_loop(job, scatter_outputs)
  
          # write the outputs for the task to return
          fn_section += self.write_scatterfunction_outputreturn(scatter_outputs)
  
          return fn_sectiof write_scatterfunction(self, job, scattername):
          '''
          Writes out a python function for each WDL "scatter" object.
          '''
  
          scatter_outputs = self.fetch_scatter_outputs(job)
  
          # write the function header
          fn_section = self.write_scatterfunction_header(scattername)
  
          # write the scatter definitions
          fn_section += self.write_scatterfunction_lists(scatter_outputs)
  
          # write
          fn_section += self.write_scatterfunction_loop(job, scatter_outputs)
  
          # write the outputs for the task to return
          fn_section += self.write_scatterfunction_outputreturn(scatter_outputs)
  
          return fn_section
docs: Writes out a python function for each WDL "scatter" object.