code: def _check_teardown():
      assert _nest_count == 0, (
          "_setup_random() and _teardown_random() "
          "must be called in pairs."
      )
  
file_path: cupy/cupy/testing/_random.py
imports: import atexit
  import functools
  import numpy
  import os
  import random
  import types
  import unittest
  import cupy
label_desc: Use image node_id 3 for calling a global function with example usage: _check_teardown() without return types