class_docstr: Tune driver
class_docstr_tok: ["Tune","driver"]
code: def test_run(self):
      def mock_reporter(**kwargs):
          assert (
              self.metric_name in kwargs
          ), "Did not report proper metric"
          assert (
              "checkpoint" in kwargs
          ), "Accidentally removed `checkpoint`?"
          raise GoodError("This works.")
  
      try:
          self.train_func(
              {
                  "out_units": 1,
                  "selected_features": [
                      "MONTH(datetime)",
                      "WEEKDAY(datetime)",
                  ],
              },
              mock_reporter,
          )
          # self.train_func(self.search_space, mock_reporter)
  
      except TypeError as e:
          print("Forgot to modify function signature?")
          raise e
      except GoodError:
          print("Works!")
          return 1
      raise Exception("Didn't call reporter...")
  
imports: import ray
  from ray import tune
  import os
  from zoo.orca.automl.search.base import SearchEngine, TrialOutput, GoodError
  from zoo.orca.automl.search.parameters import DEFAULT_LOGGER_NAME, DEFAULT_METRIC_NAME
  from zoo.orca.automl.search.ray_tune.utils import convert_bayes_configs
  from zoo.orca.automl.search.utils import get_ckpt_hdfs, put_ckpt_hdfs
  from zoo.orca.automl.search import TensorboardLogger
  from ray.tune import Stopper
  from zoo.orca.automl.model.abstract import ModelBuilder
label_desc: Use image node_id 13 for calling the RayTuneSearchEngine obj's underlying member method code with example usage: obj.test_run() and returns: int