<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def export_trial_if_needed(self, trial):
 """Exports model of this trial based on trial.export_formats. Return: A dict that maps ExportFormats to successfully exported models. """

        if trial.export_formats and len(trial.export_formats) > 0:
            return ray.get(
                trial.runner.export_model.remote(trial.export_formats))
        return {}