code: def apply_graph_transforms(mod, args):
      """Alter the layout of the input graph.
  
      Parameters
      ----------
      mod : tvm.IRModule
          The relay module to convert.
      args : dict
          The transform arguments.
  
      Returns
      -------
      mod : tvm.IRModule
          The converted module.
      """
      if not args:
          return mod
  
      # AlterLayout
      if args.get("desired_layout", None):
          mod = convert_graph_layout(
              mod,
              args["desired_layout"],
              args.get("desired_layout_ops", None),
          )
  
      # ToMixedPrecision
      if args.get("mixed_precision", False):
          mod = convert_to_mixed_precision(
              mod,
              args.get("mixed_precision_ops"),
              args.get("mixed_precision_calculation_type"),
              args.get("mixed_precision_acc_type"),
          )
      return mod
  
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 4 for calling a global function with example usage: apply_graph_transforms(mod, args) and returns: mod, mod