code: def get_image_classifier_mx_instance(
      get_image_classifier_mx_model, mnist_shape
  ):
      import mxnet  # lgtm [py/import-and-import-from]
      from art.estimators.classification import MXClassifier
  
      model = get_image_classifier_mx_model
  
      def _get_image_classifier_mx_instance(from_logits=True):
          if from_logits is False:
              # due to the fact that only 1 instance of get_image_classifier_mx_model can be created in one session
              # this will be resolved once Mxnet allows for 2 models with identical weights to be created in 1 session
              raise ARTTestFixtureNotImplemented(
                  "Currently only supporting Mxnet classifier with from_logit set to True",
                  get_image_classifier_mx_instance.__name__,
                  framework,
              )
  
          loss = mxnet.gluon.loss.SoftmaxCrossEntropyLoss(
              from_logits=from_logits
          )
          trainer = mxnet.gluon.Trainer(
              model.collect_params(), "sgd", {"learning_rate": 0.1}
          )
  
          # Get classifier
          mxc = MXClassifier(
              model=model,
              loss=loss,
              input_shape=mnist_shape,
              # input_shape=(28, 28, 1),
              nb_classes=10,
              optimizer=trainer,
              ctx=None,
              channels_first=True,
              clip_values=(0, 1),
              preprocessing_defences=None,
              postprocessing_defences=None,
              preprocessing=(0.0, 1.0),
          )
  
          return mxc
  
      return _get_image_classifier_mx_instance
  
imports: import importlib
  import json
  import logging
  import os
  import shutil
  import tempfile
  from typing import Dict, List, TYPE_CHECKING, Union
  import warnings
  import numpy
  import pytest
  import requests
  from art.data_generators import KerasDataGenerator, MXDataGenerator, PyTorchDataGenerator, TensorFlowDataGenerator, TensorFlowV2DataGenerator
  from art.defences.preprocessor import FeatureSqueezing, JpegCompression, SpatialSmoothing
  from art.estimators.classification import KerasClassifier
  from tests.utils import ARTTestFixtureNotImplemented, get_attack_classifier_pt, get_image_classifier_kr, get_image_classifier_kr_functional, get_image_classifier_kr_tf, get_image_classifier_kr_tf_functional, get_image_classifier_kr_tf_with_wildcard, get_image_classifier_mxnet_custom_ini, get_image_classifier_pt, get_image_classifier_pt_functional, get_image_classifier_tf, get_image_classifier_hf, get_image_gan_tf_v2, get_image_generator_tf_v2, get_tabular_classifier_kr, get_tabular_classifier_pt, get_tabular_classifier_scikit_list, get_tabular_classifier_tf, load_dataset, master_seed
label_desc: Use image node_id 12 for calling a global function with example usage: get_image_classifier_mx_instance(get_image_classifier_mx_model, mnist_shape) and returns: _get_image_classifier_mx_instance, mxc