code: def postprocess(self, data):
      ps = F.softmax(data, dim=1)
      probs, classes = torch.topk(ps, self.topk, dim=1)
      probs = probs.tolist()
      classes = classes.tolist()
  
      # Return a list of 1 element of the batch output
      result = []
      output = map_class_to_label(probs, self.mapping, classes)
      result.append(output)
      return result
  
file_path: serve/examples/image_classifier/near_real_time_video/near_real_time_video_handler.py
imports: import base64
  import io
  import torch
  import torch.nn.functional
  from PIL import Image
  from ts.torch_handler.image_classifier import ImageClassifier
  from ts.utils.util import map_class_to_label
label_desc: Use image node_id 3 for calling the NearRealTimeVideoHandler obj's underlying member method code with example usage: obj.postprocess(data) and returns: result