code: def check_dense(extract):
      """Check dense pattern is supported by BNNS."""
      call = extract
      while call.op.name != "nn.dense":
          call = call.args[0]
      return dense(call)
  
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 15 for calling a global function with example usage: check_dense(extract) and returns: dense