code: def test_set_name_not_called():
      cp = cached_property(lambda s: None)
  
      class Foo:
          """Test class."""
  
      Foo.cp = cp
  
      with pytest.raises(
          TypeError,
          match="Cannot use cached_property instance without calling __set_name__ on it.",
      ):
          # noinspection PyStatementEffect,PyUnresolvedReferences
          Foo().cp
  
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 8 for calling the TestCachedProperty obj's underlying member method code with example usage: obj.test_set_name_not_called() without return types