code: def to_mx(base: layers.Dense):
      return Dense(units=base.units)
  
imports: from types import FunctionType
  from mxnet.gluon import nn
  from rl_coach.architectures import layers
  from rl_coach.architectures.mxnet_components import utils
label_desc: Use image node_id 3 for calling the Dense obj's underlying member method code with example usage: obj.to_mx(base) and returns: Dense