def require_torch_bf16_cpu(test_case):
    """Decorator marking a test that requires torch>=1.10, using CPU."""
    return unittest.skipUnless(
        is_torch_bf16_cpu_available(),
        "test requires torch>=1.10, using CPU",
    )(test_case)
Decorator marking a test that requires torch>=1.10, using CPU.
dpkd/transformers/src/transformers/testing_utils.py