code: def before_batch(self):
      assert (
          len(self.xb) == len(self.yb) == 1
      ), "Only works for single input-output"
      x, y, records = self.xb[0][0], self.xb[0][1], self.yb
      self.learn.xb = [x]
      self.learn.yb = [y]
      self.learn.records = records[0]
  
imports: from icevision.engines.fastai import *
  from icevision.models.ultralytics import yolov5
label_desc: Use image node_id 1 for calling the Yolov5Callback obj's underlying member method code with example usage: obj.before_batch() without return types