code: def generate_mixed_precision_rule(acc_dtype):
      def _mixed_precision_rule(
          call_node: "relay.Call", mixed_precision_type: str
      ):
          return [
              relay.transform.mixed_precision.MIXED_PRECISION_ALWAYS,
              acc_dtype,
              mixed_precision_type,
          ]
  
      return _mixed_precision_rule
  
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 1 for calling a global function with example usage: generate_mixed_precision_rule(acc_dtype) and returns: _mixed_precision_rule, list