code: def get_exclude_symbols(model_name, exclude_first_conv):
      """Grouped supported models at the time of commit:
      - alexnet
      - densenet121, densenet161
      - densenet169, densenet201
      - inceptionv3
      - mobilenet0.25, mobilenet0.5, mobilenet0.75, mobilenet1.0,
      - mobilenetv2_0.25, mobilenetv2_0.5, mobilenetv2_0.75, mobilenetv2_1.0
      - resnet101_v1, resnet152_v1, resnet18_v1, resnet34_v1, resnet50_v1
      - resnet101_v2, resnet152_v2, resnet18_v2, resnet34_v2, resnet50_v2
      - squeezenet1.0, squeezenet1.1
      - vgg11, vgg11_bn, vgg13, vgg13_bn, vgg16, vgg16_bn, vgg19, vgg19_bn
      """
      exclude_symbol_regex = {
          "mobilenet[^v]": [
              "mobilenet_hybridsequential0_flatten0_flatten0",
              "mobilenet_hybridsequential0_globalavgpool2d0_fwd",
          ],
          "mobilenetv2": [
              "mobilenetv2_hybridsequential1_flatten0_flatten0"
          ],
          # resnetv2_hybridsequential0_hybridsequential0_bottleneckv20_batchnorm0_fwd is excluded for the sake of accuracy
          "resnet.*v2": [
              "resnetv2_hybridsequential0_flatten0_flatten0",
              "resnetv2_hybridsequential0_hybridsequential0_bottleneckv20_batchnorm0_fwd",
          ],
          "squeezenet1": [
              "squeezenet_hybridsequential1_flatten0_flatten0"
          ],
      }
      excluded_sym_names = regex_find_excluded_symbols(
          exclude_symbol_regex, model_name
      )
      if excluded_sym_names is None:
          excluded_sym_names = []
      if exclude_first_conv:
          first_conv_regex = {
              "alexnet": ["alexnet_hybridsequential0_conv2d0_fwd"],
              "densenet": ["densenet_hybridsequential0_conv2d0_fwd"],
              "inceptionv3": [
                  "inception3_hybridsequential0_hybridsequential0_conv2d0_fwd"
              ],
              "mobilenet[^v]": [
                  "mobilenet_hybridsequential0_conv2d0_fwd"
              ],
              "mobilenetv2": [
                  "mobilenetv2_hybridsequential0_conv2d0_fwd"
              ],
              "resnet.*v1": ["resnetv1_hybridsequential0_conv2d0_fwd"],
              "resnet.*v2": ["resnetv2_hybridsequential0_conv2d0_fwd"],
              "squeezenet1": [
                  "squeezenet_hybridsequential0_conv2d0_fwd"
              ],
              "vgg": ["vgg_hybridsequential0_conv2d0_fwd"],
          }
          excluded_first_conv_sym_names = regex_find_excluded_symbols(
              first_conv_regex, model_name
          )
          if excluded_first_conv_sym_names is None:
              raise ValueError(
                  f"Currently, model {model_name} is not supported in this script"
              )
          excluded_sym_names += excluded_first_conv_sym_names
      return excluded_sym_names
  
file_path: mxnet/example/quantization/imagenet_gen_qsym_onednn.py
imports: import argparse
  import logging
  import os
  import re
  import sys
  from inspect import currentframe, getframeinfo
  import mxnet
  from mxnet import gluon
  from mxnet.contrib.quantization import quantize_net
  from mxnet.gluon.data import DataLoader
  from mxnet.gluon.data.vision import transforms
  from mxnet.gluon.model_zoo.vision import get_model
  from tools.rec2idx import IndexCreator
label_desc: Use image node_id 4 for calling a global function with example usage: get_exclude_symbols(model_name, exclude_first_conv) and returns: excluded_sym_names