code: def main(args):
      """Remove the experiment(s) or trial(s)."""
      config = experiment_builder.get_cmd_config(args)
      builder = experiment_builder.ExperimentBuilder(
          config.get("storage")
      )
  
      # Find root experiment
      root = builder.load(
          name=args["name"], version=args.get("version", None)
      ).node
  
      try:
          query = build_query(root.item, args["query"])
          update = build_update(args["update"])
      except ValueError as e:
          print(f"Error: {e}", file=sys.stderr)
          return 1
  
      # List all experiments with children
      print_tree(root, nameattr="tree_name")
  
      confirmed = confirm_name(
          CONFIRM_MESSAGE.format(
              query=args["query"], update=args["update"]
          ),
          args["name"],
          args["force"],
      )
  
      if not confirmed:
          print("Confirmation failed, aborting operation.")
          return 1
  
      process_updates(builder.storage, root, query, update)
  
      return 0
  
file_path: orion/src/orion/core/cli/db/set.py
imports: import argparse
  import logging
  import sys
  import orion.core.io.experiment_builder
  from orion.core.utils.pptree import print_tree
  from orion.core.utils.terminal import confirm_name
label_desc: Use image node_id 5 for calling a global function with example usage: main(args) and returns: int, int, int