def METHOD_NAME():
    class MyMeta(type):
        """Test metaclass."""
        @cached_property
        def prop(self):
            """Property impossible to cache standard way."""
            return True
    class MyClass(metaclass=MyMeta):
        """Test class."""
    with pytest.raises(
        TypeError,
        match="The '__dict__' attribute on 'MyMeta' instance does not support",
    ):
        MyClass.prop