code: def get_result_files(self, result):
          
          if isinstance(result, dict):
              result_id = result['meta']['id']
          else:  # Should already be a string containing the id
              result_id = result
  
          result_data_dir = os.path.join(self.get_data_dir(), result_id)
  
          filenames = next(os.walk(result_data_dir))[2]
  
          filename_path_pairs = [
              (f, os.path.join(self.get_data_dir(), result_id, f))
              for f in filenames]
  
          return {k: v for k, v in filename_path_pairs}
docs: Return a dictionary containing filename: filepath values for each
          output file associated with an id.
  
          Result can be either a result dictionary (e.g., obtained with the
          get_results() method) or a result id.