class_docstr: Class for importing MXNet Gluon models.
docstr: Save a model to file in the format specific to the backend framework. For Gluon, only parameters are saved in
  file with name `<filename>.params` at the specified path. To load the saved model, the original model code needs
  to be run before calling `load_parameters` on the generated Gluon model.
  
  :param filename: Name of the file where to store the model.
  :param path: Path of the folder where to store the model. If no path is specified, the model will be stored in
               the default data location of the library `ART_DATA_PATH`.
docstr_tok: ["Save","a","model","to","file","in","the","format","specific","to","the","backend","framework",".","For","Gluon",",","only","parameters","are","saved","in","file","with","name","`","<","filename",">",".params","`","at","the","specified","path",".","To","load","the","saved","model",",","the","original","model","code","needs","to","be","run","before","calling","`","load_parameters","`","on","the","generated","Gluon","model",".",":","param","filename",":","Name","of","the","file","where","to","store","the","model",".",":","param","path",":","Path","of","the","folder","where","to","store","the","model",".","If","no","path","is","specified",",","the","model","will","be","stored","in","the","default","data","location","of","the","library","`","ART_DATA_PATH","`","."]
code: def save(self, filename: str, path: Optional[str] = None) -> None:
      """
      Save a model to file in the format specific to the backend framework. For Gluon, only parameters are saved in
      file with name `<filename>.params` at the specified path. To load the saved model, the original model code needs
      to be run before calling `load_parameters` on the generated Gluon model.
  
      :param filename: Name of the file where to store the model.
      :param path: Path of the folder where to store the model. If no path is specified, the model will be stored in
                   the default data location of the library `ART_DATA_PATH`.
      """
      if path is None:
          full_path = os.path.join(config.ART_DATA_PATH, filename)
      else:
          full_path = os.path.join(path, filename)
      folder = os.path.split(full_path)[0]
      if not os.path.exists(folder):
          os.makedirs(folder)
  
      self._model.save_parameters(full_path + ".params")
      logger.info(
          "Model parameters saved in path: %s.params.", full_path
      )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import os
  from typing import List, Optional, Tuple, Union, TYPE_CHECKING
  import numpy
  import six
  from art import config
  from art.estimators.mxnet import MXEstimator
  from art.estimators.classification.classifier import ClassGradientsMixin, ClassifierMixin
  from art.utils import check_and_transform_label_format
label_desc: Use image node_id 14 for calling the MXClassifier obj's underlying member method code with example usage: obj.save(filename, path) without return types