code: def _create_experiment(max_trial_number):
      experiment = Experiment("local")
      experiment.config.trial_command = (
          sys.executable + " assets/trial_sklearn.py"
      )
      experiment.config.trial_code_directory = Path(__file__).parent
      experiment.config.search_space = search_space
      experiment.config.tuner.name = "Random"
      experiment.config.max_trial_number = max_trial_number
      experiment.config.trial_concurrency = 2
      return experiment
  
file_path: nni/test/ut/experiment/test_experiment.py
imports: import time
  import sys
  from pathlib import Path
  from nni.experiment import Experiment
label_desc: Use image node_id 1 for calling a global function with example usage: _create_experiment(max_trial_number) and returns: experiment