    def get_batch_size(cls, batch: SingleType, batch_dim: int) -> int:
        """A default implementation for backward compatibility"""
        return 1
A default implementation for backward compatibility
src/bentoml/_internal/runner/container.py