code: def make_dense_pattern(with_bias=True, with_eltwise=None):
      """Create patterns related to nn.dense.
  
      Parameters
      ----------
      with_bias : bool
          Whether attach `bias_add` to `nn.dense`.
      with_eltwise : str
          The attached elementwise post-op name.
      Returns
      -------
      dense_out : CallPattern
          Call node sequence.
      """
      if with_eltwise not in supported_post_elts:
          raise ValueError(
              f"Unsupported eltwise post-op: {with_eltwise}"
          )
      data = wildcard()
      weight = wildcard()
      bias = wildcard()
  
      dense = is_op("nn.dense")(data, weight)
      if with_bias:
          dense_out = is_op("add")(dense, bias)
      else:
          dense_out = dense
      return append_eltwise_ops(dense_out, with_eltwise)
  
imports: import logging
  from functools import reduce
  import tvm.ir
  from tvm import relay
  from tvm.ir import Op
  from tvm.relay import expr
  from tvm.relay import transform
  from tvm.relay.analysis import analysis
  from tvm.relay.expr import Call, GlobalVar, TupleGetItem, const
  from tvm.relay.expr_functor import ExprMutator, ExprVisitor
  from ...None import _ffi_api
  from ...dataflow_pattern import DFPatternCallback, is_constant, is_expr, is_op, rewrite, wildcard
  from .register import register_pattern_table
label_desc: Use image node_id 12 for calling a global function with example usage: make_dense_pattern(with_bias, with_eltwise) and returns: append_eltwise_ops