class_docstr: MobileNet model trained on ImageNet dataset.
class_docstr_tok: ["MobileNet","model","trained","on","ImageNet","dataset","."]
code: def output_spec(self):
      return {
          "preds": lit_types.MulticlassPreds(
              vocab=self.labels, autosort=True, parent="label"
          ),
          "grads": lit_types.ImageGradients(
              align="image", grad_target_field_key="label"
          ),
      }
  
file_path: lit/lit_nlp/examples/models/mobilenet.py
imports: from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.examples.models import imagenet_labels
  from lit_nlp.lib import image_utils
  import numpy
  import tensorflow
label_desc: Use image node_id 4 for calling the MobileNet obj's underlying member method code with example usage: obj.output_spec() and returns: dict