code: def test_assert_deallocated_nodel():
      class C:
          pass
  
      with pytest.raises(ReferenceError):
          # Need to delete after using if in with-block context
          # Note: assert_deallocated(C) needs to be assigned for the test
          # to function correctly.  It is assigned to _, but _ itself is
          # not referenced in the body of the with, it is only there for
          # the refcount.
          with assert_deallocated(C) as _:
              pass
  
file_path: scipy/scipy/_lib/tests/test__gcutils.py
imports: import gc
  from scipy._lib._gcutils import set_gc_state, gc_state, assert_deallocated, ReferenceError, IS_PYPY
  from numpy.testing import assert_equal
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_assert_deallocated_nodel() without return types