code: def fetch_output(self, path, name, working_directory, action_type, output_type):
          
          if output_type in ['output_workdir', 'output_metadata']:
              self._populate_output_path(name, path, action_type, output_type)
          elif output_type == 'output':
              self._fetch_output(path=path, name=name, action_type=action_type)
          else:
              raise Exception("Unknown output_type %s" % output_type)
docs: Fetch (transfer, copy, etc...) an output from the remote Pulsar server.
  
          **Parameters**
  
          path : str
              Local path of the dataset.
          name : str
              Remote name of file (i.e. path relative to remote staging output
              or working directory).
          working_directory : str
              Local working_directory for the job.
          action_type : str
              Where to find file on Pulsar (output_workdir or output). legacy is also
              an option in this case Pulsar is asked for location - this will only be
              used if targetting an older Pulsar server that didn't return statuses
              allowing this to be inferred.