class_docstr: Class for importing MXNet Gluon models.
docstr: Return the hidden layers in the model, if applicable.
  
  :return: The hidden layers in the model, input and output layers excluded.
docstr_tok: ["Return","the","hidden","layers","in","the","model",",","if","applicable",".",":","return",":","The","hidden","layers","in","the","model",",","input","and","output","layers","excluded","."]
code: def _get_layers(self) -> list:
      """
      Return the hidden layers in the model, if applicable.
  
      :return: The hidden layers in the model, input and output layers excluded.
      """
      import mxnet
  
      if isinstance(self._model, mxnet.gluon.nn.Sequential):
          layer_names = [layer.name for layer in self._model[:-1]]
          logger.info(
              "Inferred %i hidden layers on MXNet classifier.",
              len(layer_names),
          )
      else:
          layer_names = []
  
      return layer_names
  
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 17 for calling the MXClassifier obj's underlying member method code with example usage: obj._get_layers() and returns: layer_names