code: def _require_mxnet_version(mx_version, max_mx_version="2.0.0"):
      try:
          import mxnet as mx
          from distutils.version import LooseVersion
  
          if LooseVersion(mx.__version__) < LooseVersion(
              mx_version
          ) or LooseVersion(mx.__version__) >= LooseVersion(
              max_mx_version
          ):
              version_str = ">={},<{}".format(
                  mx_version, max_mx_version
              )
              msg = (
                  "Legacy mxnet=={0} detected, some modules may not work properly. "
                  "mxnet{1} is required. You can use pip to upgrade mxnet "
                  "`pip install -U 'mxnet{1}'` "
                  "or `pip install -U 'mxnet-cu100{1}'`\
                  "
              ).format(mx.__version__, version_str)
              raise RuntimeError(msg)
      except ImportError as ex:
          raise ImportError(
              "Unable to import dependency mxnet. "
              "A quick tip is to install via "
              "`pip install 'mxnet-cu100<{}'`. "
              "please refer to https://gluon-cv.mxnet.io/#installation for details.".format(
                  max_mx_version
              )
          ) from ex
  
label_desc: Use image node_id 1 for calling a global function with example usage: _require_mxnet_version(mx_version, max_mx_version) without return types