code: def instance_norm_check(expr):
      """Check if the nn.instance_norm can be executed in BNNS"""
      attrs, args = expr.attrs, expr.args
      data_typ = args[0].checked_type
      rank = len(data_typ.shape)
      if rank < 3 or rank > 4 or data_typ.dtype != "float32":
          return False
      if not isinstance(
          args[1], tvm.relay.expr.Constant
      ) or not isinstance(args[2], tvm.relay.expr.Constant):
          return False
      if attrs.axis == 0 and rank == 3 or attrs.axis == 1 and rank == 4:
          return True
      return False
  
imports: import math
  import tvm.ir
  from tvm.relay import transform
  from tvm.relay.expr import const
  from tvm.relay.build_module import bind_params_by_name
  from .register import register_pattern_table, get_pattern_table
  from ...dataflow_pattern import wildcard, is_op, is_expr
label_desc: Use image node_id 16 for calling a global function with example usage: instance_norm_check(expr) and returns: False, False, False, True