code: def check_random(pool):
      res = pool.map(random, range(2))
      assert res[0] != res[1]
      if HASNUMPY:
          res = pool.map(rand, range(2))
          assert res[0] != res[1]
      pool.close()
      pool.join()
      pool.clear()
      return
  
file_path: pathos/pathos/tests/test_random.py
imports: from pathos.pools import *
label_desc: Use image node_id 5 for calling a global function with example usage: check_random(pool) without return types