code: def check_dilation(attrs):
      """Prevents offloading if dilation other than (1, 1)"""
      if not isinstance(attrs, relay.op.op_attrs.GlobalPool2DAttrs):
          if not (
              len(attrs.dilation) == 2
              and attrs.dilation[0] == 1
              and attrs.dilation[1] == 1
          ):
              return False
      return True
  
imports: import tvm
  from tvm import relay
  from tvm._ffi import register_func
  from tvm.relay import transform
  from tvm.relay.build_module import bind_params_by_name
  from tvm.relay.expr import const
  from ...dataflow_pattern import is_constant, is_expr, is_op, is_tuple, wildcard
  from ..strategy.generic import is_depthwise_conv2d
  from .register import register_pattern_table
label_desc: Use image node_id 11 for calling a global function with example usage: check_dilation(attrs) and returns: True, False