def test_very_long_name(self):
        """Test initialization with a very long name."""
        with self.assertRaisesRegex(ValueError, "Cannot convert"):
            DTypePolicy("mixed_float16" * 100)
Test initialization with a very long name.
keras/src/dtype_policies/dtype_policy_test.py