keras/src/trainers/data_adapters/data_adapter.py/DataAdapter/partial_batch_size
class DataAdapter:    def partial_batch_size(self):
        """The size of the final partial batch for dataset.

        Will return None if has_partial_batch is False or batch_size is None.
        """
        raise NotImplementedError