class_docstr: This version of MNIST inherits from the core Dialog Teacher, which just requires it
  to define an iterator over its data `setup_data` in order to inherit basic metrics,
  a `act` function, and enables Hogwild training with shared memory with no extra
  work.
class_docstr_tok: ["This","version","of","MNIST","inherits","from","the","core","Dialog","Teacher",",","which","just","requires","it","to","define","an","iterator","over","its","data","`","setup_data","`","in","order","to","inherit","basic","metrics",",","a","`","act","`","function",",","and","enables","Hogwild","training","with","shared","memory","with","no","extra","work","."]
code: def label_candidates(self):
      return [str(x) for x in range(10)] + self.num_strs
  
file_path: ParlAI/parlai/tasks/mnist_qa/agents.py
imports: from parlai.core.teachers import DialogTeacher
  from parlai.utils.io import PathManager
  from .build import build
  import json
  import os
label_desc: Use image node_id 2 for calling the MnistQATeacher obj's underlying member method code with example usage: obj.label_candidates() and returns: unknown