code: def test_seed(seed):
      rand = F.rand(shape=(1, 2, 3))
  
      nn.seed(seed)
  
      # check Python random generator
      assert R.pseed == seed
      assert R.prng.rand() == np.random.RandomState(seed).rand()
  
      # check NNabla layer
      rand_values_before = []
      for i in range(10):
          rand.forward()
          rand_values_before.append(rand.d.copy())
  
      # reset seed
      nn.seed(seed)
  
      rand_values_after = []
      for i in range(10):
          rand.forward()
          rand_values_after.append(rand.d.copy())
  
      # check if global random generator is reset
      assert np.all(
          np.array(rand_values_before) == np.array(rand_values_after)
      )
  
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  import nnabla.random
label_desc: Use image node_id 1 for calling a global function with example usage: test_seed(seed) without return types