code: def _convert_dense(
      inexpr, keras_layer, etab, data_layout, input_shape=None
  ):  # pylint: disable=unused-argument
      weightList = keras_layer.get_weights()
      weight = etab.new_const(weightList[0].transpose([1, 0]))
      params = {"weight": weight, "units": weightList[0].shape[1]}
      units = list(weightList[0].shape)[1]
      assert units > 0, "The value of units must be a positive integer"
      if input_shape is None:
          input_shape = keras_layer.input_shape
      input_dim = len(input_shape)
      # In case of RNN dense, input shape will be (1, 1, n)
      if input_dim > 2:
          input_shape = tuple(
              dim if dim else 1 for dim in _as_list(input_shape)[0]
          )
          if (
              input_dim != 3
              or input_shape[0] != 1
              or input_shape[1] != 1
          ):
              raise tvm.error.OpAttributeInvalid(
                  f"Input shape {input_shape} is not valid for operator Dense."
              )
          inexpr = _op.squeeze(inexpr, axis=[0])
      out = _op.nn.dense(data=inexpr, **params)
      if keras_layer.use_bias:
          bias = etab.new_const(weightList[1])
          out = _op.nn.bias_add(out, bias)
      # defuse activation
      if sys.version_info.major < 3:
          act_type = keras_layer.activation.func_name
      else:
          act_type = keras_layer.activation.__name__
      if act_type != "linear":
          out = _convert_activation(out, act_type, etab, data_layout)
      if input_dim > 2:
          out = _op.expand_dims(out, axis=0)
      return out
  
imports: import dis
  import sys
  import numpy
  import tvm
  from tvm.ir import IRModule, TensorType, TupleType
  from ..None import analysis
  from ..None import expr
  from ..None import function
  from ..None import op
  from ...None import nd
  from .common import ExprTable, new_var
label_desc: Use image node_id 11 for calling a global function with example usage: _convert_dense(inexpr, keras_layer, etab, data_layout, input_shape) and returns: out