code: def testInvalidExportFormats(self):
      class MyTrainable(Trainable):
          def step(self):
              return {"timesteps_this_iter": 1, "done": True}
  
          def _export_model(self, export_formats, export_dir):
              ExportFormat.validate(export_formats)
              return {}
  
      def fail_trial():
          run_experiments(
              {
                  "foo": {
                      "run": MyTrainable,
                      "export_formats": ["format"],
                  }
              }
          )
  
      self.assertRaises(TuneError, fail_trial)
  
imports: import os
  import unittest
  import ray
  import ray.train
  from ray.train import CheckpointConfig
  from ray.rllib import _register_all
  from ray.tune.result import TIMESTEPS_TOTAL
  from ray.tune import Trainable, TuneError
  from ray.tune import register_trainable, run_experiments
  from ray.tune.logger import LegacyLoggerCallback, Logger
  from ray.tune.experiment import Experiment
  from ray.tune.experiment.trial import Trial, ExportFormat
label_desc: Use image node_id 9 for calling the RunExperimentTest obj's underlying member method code with example usage: obj.testInvalidExportFormats() and returns: dict, dict