class_docstr: Base class for all vision handlers
docstr: The post process of MNIST converts the predicted output response to a label.
  
  Args:
      data (list): The predicted output from the Inference with probabilities is passed
      to the post-process function
  Returns:
      list : A list of dictionaries with predictions and explanations is returned
docstr_tok: ["The","post","process","of","MNIST","converts","the","predicted","output","response","to","a","label",".","Args",":","data","(","list",")",":","The","predicted","output","from","the","Inference","with","probabilities","is","passed","to","the","post-process","function","Returns",":","list",":","A","list","of","dictionaries","with","predictions","and","explanations","is","returned"]
code: def postprocess(self, data):
      """The post process of MNIST converts the predicted output response to a label.
  
      Args:
          data (list): The predicted output from the Inference with probabilities is passed
          to the post-process function
      Returns:
          list : A list of dictionaries with predictions and explanations is returned
      """
      return data.argmax(1).tolist()
  
file_path: serve/examples/nvidia_dali/custom_handler.py
imports: from torch.profiler import ProfilerActivity
  from ts.torch_handler.dali_handler import DALIHandler
label_desc: Use image node_id 5 for calling the DALIMNISTDigitClassifier obj's underlying member method code with example usage: obj.postprocess(data) and returns: data