code: def export_trial_if_needed(self, trial):
          
          if trial.export_formats and len(trial.export_formats) > 0:
              return ray.get(
                  trial.runner.export_model.remote(trial.export_formats))
          return {}
docs: Exports model of this trial based on trial.export_formats.
  
          Return:
              A dict that maps ExportFormats to successfully exported models.