code: def get_duc_mobilenet(
      base_network, pretrained=False, ctx=cpu(), **kwargs
  ):
      """Get mobilenet with duc upsampling layers.
  
      Parameters
      ----------
      base_network : str
          Name of the base feature extraction network.
      pretrained : bool
          Whether load pretrained base network.
      ctx : mxnet.Context
          mx.cpu() or mx.gpu()
      Returns
      -------
      nn.HybridBlock
          Network instance of mobilenet with duc upsampling layers
  
      """
      net = DUCMobilenet(
          base_network=base_network,
          pretrained_base=pretrained,
          **kwargs,
      )
      with warnings.catch_warnings(record=True) as _:
          warnings.simplefilter("always")
          net.initialize()
      net.collect_params().reset_ctx(ctx)
      return net
  
file_path: gluon-cv/gluoncv/model_zoo/center_net/duc_mobilenet.py
imports: from __future__ import absolute_import
  import warnings
  from mxnet.context import cpu
  from mxnet.gluon import nn
  from ..model_zoo import get_model
  from ...nn.block import DUC
label_desc: Use image node_id 1 for calling a global function with example usage: get_duc_mobilenet(base_network, pretrained, ctx) and returns: net