code: def _setup_random():
      """Sets up the deterministic random states of ``numpy`` and ``cupy``."""
      global _nest_count
      if _nest_count == 0:
          nondeterministic = bool(
              int(
                  os.environ.get(
                      "CHAINER_TEST_RANDOM_NONDETERMINISTIC", "0"
                  )
              )
          )
          do_setup(not nondeterministic)
      _nest_count += 1
  
imports: from __future__ import absolute_import
  import atexit
  import functools
  import os
  import random
  import types
  import numpy
  from chainer.backends import cuda
  from chainer.testing import _bundle
label_desc: Use image node_id 7 for calling a global function with example usage: _setup_random() without return types