code: def inceptionv3_hmdb51(
      nclass=51,
      pretrained=False,
      pretrained_base=True,
      use_tsn=False,
      num_segments=1,
      num_crop=1,
      partial_bn=True,
      ctx=mx.cpu(),
      root="~/.mxnet/models",
      **kwargs,
  ):
      r"""InceptionV3 model trained on HMDB51 dataset.
  
      Parameters
      ----------
      nclass : int.
          Number of categories in the dataset.
      pretrained : bool or str.
          Boolean value controls whether to load the default pretrained weights for model.
          String value represents the hashtag for a certain version of pretrained weights.
      pretrained_base : bool or str, optional, default is True.
          Load pretrained base network, the extra layers are randomized. Note that
          if pretrained is `True`, this has no effect.
      ctx : Context, default CPU.
          The context in which to load the pretrained weights.
      root : str, default $MXNET_HOME/models
          Location for keeping the model parameters.
      num_segments : int, default is 1.
          Number of segments used to evenly divide a video.
      num_crop : int, default is 1.
          Number of crops used during evaluation, choices are 1, 3 or 10.
      partial_bn : bool, default False.
          Freeze all batch normalization layers during training except the first layer.
      """
      model = ActionRecInceptionV3(
          nclass=nclass,
          partial_bn=partial_bn,
          pretrained_base=pretrained_base,
          num_segments=num_segments,
          num_crop=num_crop,
          dropout_ratio=0.8,
          init_std=0.001,
      )
  
      if pretrained:
          from ..model_store import get_model_file
  
          model.load_parameters(
              get_model_file(
                  "inceptionv3_hmdb51", tag=pretrained, root=root
              )
          )
          from ...data import HMDB51Attr
  
          attrib = HMDB51Attr()
          model.classes = attrib.classes
      model.collect_params().reset_ctx(ctx)
      return model
  
file_path: gluon-cv/gluoncv/model_zoo/action_recognition/actionrec_inceptionv3.py
imports: import mxnet
  from mxnet import init
  from mxnet.gluon import nn
  from mxnet.gluon.nn import HybridBlock
  from ..inception import inception_v3
label_desc: Use image node_id 2 for calling a global function with example usage: inceptionv3_hmdb51(nclass, pretrained, pretrained_base, use_tsn, num_segments, num_crop, partial_bn, ctx, root) and returns: model