code: def update_metadata(metadata):
      """Update information about the process + versioning"""
      metadata.setdefault("user", getpass.getuser())
      metadata["orion_version"] = orion.core.__version__
  
      if not metadata.get("user_args"):
          return metadata
  
      cmdline_parser = OrionCmdlineParser()
      cmdline_parser.set_state_dict(metadata["parser"])
  
      if cmdline_parser.user_script:
          # TODO: Remove this, it is all in cmdline_parser now
          metadata["user_script"] = cmdline_parser.user_script
          metadata["VCS"] = infer_versioning_metadata(
              cmdline_parser.user_script
          )
  
      return metadata
  
imports: import copy
  import getpass
  import hashlib
  import logging
  import os
  import git
  import yaml
  from numpy import inf
  import orion
  import orion.core
  from orion.core.io.orion_cmdline_parser import OrionCmdlineParser
  from orion.core.utils.flatten import unflatten
label_desc: Use image node_id 7 for calling a global function with example usage: update_metadata(metadata) and returns: metadata, metadata