code: def _write_for_dstype(self, learn:Learner, batch:Tuple, iteration:int, tbwriter:SummaryWriter, ds_type:DatasetType)->None:
          "Writes batch images of specified DatasetType to Tensorboard."
          request = ImageTBRequest(learn=learn, batch=batch, iteration=iteration, tbwriter=tbwriter, ds_type=ds_type)
          asyncTBWriter.request_write(requestf _write_for_dstype(self, learn:Learner, batch:Tuple, iteration:int, tbwriter:SummaryWriter, ds_type:DatasetType)->None:
          "Writes batch images of specified DatasetType to Tensorboard."
          request = ImageTBRequest(learn=learn, batch=batch, iteration=iteration, tbwriter=tbwriter, ds_type=ds_type)
          asyncTBWriter.request_write(request)
docs: Writes batch images of specified DatasetType to Tensorboard.