code: def test_default_num_samples(parameters, expected_num_samples):
      """This test ensures that the default number of samples is set correctly when the user does not specify the
      number of samples in the hyperopt config."""
      config = _get_config()
  
      # Override to set num_samples to None so we can test inference logic
      config["hyperopt"]["executor"]["num_samples"] = None
      config["hyperopt"]["parameters"] = parameters
  
      processed_config = ModelConfig.from_dict(config).to_dict()
  
      assert (
          processed_config["hyperopt"]["executor"]["num_samples"]
          == expected_num_samples
      )
  
file_path: ludwig/tests/ludwig/hyperopt/test_hyperopt.py
imports: import pytest
  from ludwig.constants import INPUT_FEATURES, NAME, OUTPUT_FEATURES, TYPE
  from ludwig.hyperopt.utils import log_warning_if_all_grid_type_parameters, substitute_parameters
  from ludwig.schema.model_config import ModelConfig
label_desc: Use image node_id 5 for calling a global function with example usage: test_default_num_samples(parameters, expected_num_samples) without return types