code: def make_residual_block_pattern(
      tensor_op_out, binary_op="add", with_act="relu"
  ):
      """Add pattern for residual blocks."""
      residual_input = wildcard()
      binary_out = is_op(binary_op)(
          tensor_op_out, residual_input
      ) | is_op(binary_op)(residual_input, tensor_op_out)
  
      if with_act is not None and with_act == "relu":
          return is_op("nn.relu")(binary_out)
  
      return binary_out
  
imports: from functools import partial
  from tvm import relay
  from tvm.ir.transform import PassContext, Sequential
  from tvm.relay import transform
  from tvm.relay.build_module import bind_params_by_name
  from tvm.relay.op.contrib.register import register_pattern_table
  from ...dataflow_pattern import is_constant, is_op, wildcard
label_desc: Use image node_id 7 for calling a global function with example usage: make_residual_block_pattern(tensor_op_out, binary_op, with_act) and returns: binary_out, is_op