code: def test_same_seed(self) -> None:
      batch_sizes1 = []
      for x, _y in self.dataloader:
          batch_sizes1.append(x.shape[0])
  
      _, dataloader = self._init_data(seed=7)
      batch_sizes2 = []
      for x, _y in dataloader:
          batch_sizes2.append(x.shape[0])
  
      self.assertEqual(batch_sizes1, batch_sizes2)
  
file_path: opacus/opacus/tests/poisson_test.py
imports: import unittest
  import numpy
  import torch
  from opacus.utils.uniform_sampler import UniformWithReplacementSampler
label_desc: Use image node_id 5 for calling the PoissonSamplingTest obj's underlying member method code with example usage: obj.test_same_seed() without return types