docstr: Reusing a cached_property on different classes under the same name is OK.
docstr_tok: ["Reusing","a","cached_property","on","different","classes","under","the","same","name","is","OK","."]
code: def test_reuse_same_name():
      """Reusing a cached_property on different classes under the same name is OK."""
      counter = 0
  
      @cached_property
      def _cp(_self):
          nonlocal counter
          counter += 1
          return counter
  
      class A:  # NOSONAR
          """Test class 1."""
  
          cp = _cp
  
      class B:  # NOSONAR
          """Test class 2."""
  
          cp = _cp
  
      a = A()
      b = B()
  
      assert a.cp == 1
      assert b.cp == 2
      assert a.cp == 1
  
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 7 for calling the TestCachedProperty obj's underlying member method code with example usage: obj.test_reuse_same_name() and returns: counter