code: def update_user_args(metadata):
      """Make sure user script is not removed from metadata"""
      if (
          "user_script" in metadata
          and metadata["user_script"] not in metadata["user_args"]
      ):
          log.debug("Updating user_args for backward compatibility")
          metadata["user_args"] = [metadata["user_script"]] + metadata[
              "user_args"
          ]
          log.debug(pprint.pformat(metadata["user_args"]))
  
file_path: orion/src/orion/core/utils/backward.py
imports: import copy
  import logging
  import pprint
  import orion.core
  from orion.core.io.orion_cmdline_parser import OrionCmdlineParser
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 1 for calling a global function with example usage: update_user_args(metadata) without return types