code: def _build_from_config(config_path):
      converter = infer_converter_from_file_type(config_path)
      userconfig_tmpl = converter.parse(config_path)
      userconfig_keyword = "orion="
  
      transformed_args = {}
      stack = collections.deque()
      stack.append(("", userconfig_tmpl))
      while True:
          try:
              namespace, stuff = stack.pop()
          except IndexError:
              break
          if isinstance(stuff, dict):
              for k, v in stuff.items():
                  stack.append(("/".join([namespace, str(k)]), v))
          elif isinstance(stuff, list):
              for position, thing in enumerate(stuff):
                  stack.append(
                      ("/".join([namespace, str(position)]), thing)
                  )
          elif isinstance(stuff, str):
              if stuff.startswith(userconfig_keyword):
                  if namespace in transformed_args:
                      raise ValueError(
                          f"Conflict for name '{namespace}' in script configuration and arguments."
                      )
  
                  transformed_args[namespace] = stuff[
                      len(userconfig_keyword) :
                  ]
  
      return transformed_args
  
file_path: orion/src/orion/core/cli/insert.py
imports: import collections
  import logging
  import os
  import re
  from orion.core.cli import base
  from orion.core.io import experiment_builder
  from orion.core.io.convert import infer_converter_from_file_type
  from orion.core.utils.format_trials import tuple_to_trial
label_desc: Use image node_id 7 for calling a global function with example usage: _build_from_config(config_path) and returns: transformed_args