code: def _test_random_device(self, device):
      pfrl.utils.set_random_seed(0)
      seed0_0 = torch.rand(1, device=device)
      pfrl.utils.set_random_seed(1)
      seed1_0 = torch.rand(1, device=device)
      pfrl.utils.set_random_seed(0)
      seed0_1 = torch.rand(1, device=device)
      pfrl.utils.set_random_seed(1)
      seed1_1 = torch.rand(1, device=device)
      self.assertEqual(seed0_0, seed0_1)
      self.assertEqual(seed1_0, seed1_1)
      self.assertNotEqual(seed0_0, seed1_0)
  
file_path: pfrl/tests/utils_tests/test_random_seed.py
imports: import random
  import unittest
  import pytest
  import torch
  import pfrl
label_desc: Use image node_id 2 for calling the TestSetRandomSeed obj's underlying member method code with example usage: obj._test_random_device(device) without return types