code: def get_total_mac_number(expr):
      """
      Count the number of MACs (multiply-accumulate) of a model
  
      Parameters
      ----------
      expr : tvm.relay.Expr
          The input expression.
  
      Returns
      -------
      result : int64
        The number of MACs (multiply-accumulate) of a model
      """
      return _ffi_api.GetTotalMacNumber(expr)
  
imports: from ...ir import IRModule
  from ...relay import transform, build_module
  from ...runtime.ndarray import cpu
  from .None import _ffi_api
  from .feature import Feature
label_desc: Use image node_id 13 for calling a global function with example usage: get_total_mac_number(expr) and returns: _ffi_api