code: def run_hyperopt(
      config,
      rel_path,
      out_dir,
      experiment_name="ray_hyperopt",
  ):
      callback = CustomTestCallback()
      hyperopt_results = hyperopt(
          config,
          dataset=rel_path,
          output_directory=out_dir,
          experiment_name=experiment_name,
          callbacks=[callback],
      )
  
      # check for return results
      assert isinstance(hyperopt_results, HyperoptResults)
  
      # check for existence of the hyperopt statistics file
      assert os.path.isfile(
          os.path.join(
              out_dir, experiment_name, HYPEROPT_STATISTICS_FILE_NAME
          )
      )
  
imports: import os.path
  import shutil
  import uuid
  from unittest.mock import patch
  import pytest
  from ludwig.api import LudwigModel
  from ludwig.callbacks import Callback
  from ludwig.constants import ACCURACY, AUTO, BATCH_SIZE, EXECUTOR, MAX_CONCURRENT_TRIALS, TRAINER
  from ludwig.globals import HYPEROPT_STATISTICS_FILE_NAME
  from ludwig.hyperopt.results import HyperoptResults
  from ludwig.hyperopt.run import hyperopt
  from ludwig.hyperopt.utils import update_hyperopt_params_with_defaults
  from ludwig.schema.model_config import ModelConfig
  from tests.integration_tests.utils import binary_feature, create_data_set_to_use, generate_data, number_feature
label_desc: Use image node_id 9 for calling a global function with example usage: run_hyperopt(config, rel_path, out_dir, experiment_name) without return types