code: def test_immutable_dict():
      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
  
imports: import concurrent.futures
  import sys
  import threading
  import pytest
  from flash.core.serve._compat.cached_property import cached_property
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 5 for calling the TestCachedProperty obj's underlying member method code with example usage: obj.test_immutable_dict() and returns: True