code: def to_file_object(self, name, out_dir):
          
          make_analysis_dir(out_dir)
  
          file_ref = File('ALL', name, self.get_times_covered_by_files(),
                               extension='.pkl', directory=out_dir)
          self.dump(file_ref.storage_path)
          return file_ref
docs: Dump to a pickle file and return an File object reference of this list
  
          Parameters
          ----------
          name : str
              An identifier of this file. Needs to be unique.
          out_dir : path
              path to place this file
  
          Returns
          -------
          file : AhopeFile