code: def process_args(args):
      
      passed_args = args
      if isinstance(args, argparse.Namespace):
          passed_args = vars(passed_args)
      elif hasattr(args, "to_dict"):
          passed_args = passed_args.to_dict()
  
      return Box(passed_args, frozen_box=True, default_box=True)
docs: Processes passed arguments.