def METHOD_NAME(self, frame, i, result, error):
    frame = self.postprocess_callback(frame, result)
    self.pq.put((i, frame))
    if error is not None and self.verbose == True:
        print(error)