keras/src/trainers/data_adapters/torch_data_loader_adapter.py/TorchDataLoaderAdapter/has_partial_batch
class TorchDataLoaderAdapter:    def has_partial_batch(self):
        if self._partial_batch_size:
            return self._partial_batch_size > 0
        else:
            return None