code: def old_config_with_script_conf(old_config, tmp_path):
      """Generate a old experiment configuration with a config file"""
  
      old_config = copy.deepcopy(old_config)
  
      config_path = tmp_path / "old_config.yaml"
      with open(config_path, "w") as f:
          yaml.dump(
              {
                  "config-hp": "uniform(0, 10)",
                  "dropped": "uniform(-1, 5)",
              },
              f,
          )
      old_config["metadata"]["user_args"] += [
          "--config",
          str(config_path),
      ]
  
      backward.populate_space(old_config, force_update=True)
  
      return old_config
  
imports: import copy
  import getpass
  import os
  import pytest
  import yaml
  import orion.core.io.experiment_builder
  import orion.core.utils.backward
  from orion.algo.space import Categorical, Integer, Real, Space
  from orion.core.evc import conflicts
  from orion.core.io.convert import JSONConverter, YAMLConverter
  from orion.core.io.space_builder import DimensionBuilder
  from orion.core.utils import format_trials
  from orion.core.worker.trial import Trial
  from orion.testing import MockDatetime
label_desc: Use image node_id 22 for calling a global function with example usage: old_config_with_script_conf(old_config, tmp_path) and returns: old_config