class_docstr: Machine Comprehension API
class_docstr_tok: ["Machine","Comprehension","API"]
code: def inference(self, doc):
      body = doc
      print("Begin Inference Mode")
      question = body["question"]
      paragraph_id = body["paragraph"]
      return self.model.inference_mode(
          self.sess,
          self.dev,
          [self.vocab_dict, self.vocab_rev],
          dynamic_question_mode=True,
          num_examples=1,
          dropout=1.0,
          dynamic_usr_question=question,
          dynamic_question_index=paragraph_id,
      )
  
imports: from __future__ import division
  from __future__ import print_function
  import os
  import re
  import zipfile
  from os import makedirs
  from random import shuffle
  import numpy
  import tensorflow
  from nlp_architect import LIBRARY_OUT
  from nlp_architect.api.abstract_api import AbstractApi
  from nlp_architect.utils.generic import license_prompt
  from nlp_architect.utils.io import download_unlicensed_file
  from .matchlstm_ansptr import MatchLSTMAnswerPointer
  from .mrc_utils import create_squad_training, max_values_squad, get_data_array_squad
label_desc: Use image node_id 6 for calling the MachineComprehensionApi obj's underlying member method code with example usage: obj.inference(doc) and returns: self