code: def parse_graph_transform_args(args):
      """Parse incoming options for graph transform arguments.
  
      Parameters
      ----------
      args: argparse.Namespace or dict
          Arguments.
  
      Returns
      -------
      transform_args : dict
          Graph transform arguments
      """
  
      if not isinstance(args, dict):
          args = vars(args)
  
      transform_args = [
          "desired_layout",
          "desired_layout_ops",
          "mixed_precision",
          "mixed_precision_ops",
          "mixed_precision_calculation_type",
          "mixed_precision_acc_type",
      ]
      transform_args = {
          key: args.get(key, None) for key in transform_args
      }
      return transform_args
  
file_path: tvm/python/tvm/driver/tvmc/transform.py
imports: from tvm import relay, transform
  from tvm.driver.tvmc import TVMCException
label_desc: Use image node_id 5 for calling a global function with example usage: parse_graph_transform_args(args) and returns: transform_args