code: def _init_data(self, seed=0):
      generator = torch.Generator()
      generator.manual_seed(seed)
      sampler = UniformWithReplacementSampler(
          num_samples=len(self.dataset),
          sample_rate=self.batch_size / len(self.dataset),
          generator=generator,
      )
      dataloader = torch.utils.data.DataLoader(
          self.dataset, batch_sampler=sampler
      )
  
      return sampler, dataloader
  
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 1 for calling the PoissonSamplingTest obj's underlying member method code with example usage: obj._init_data(seed) and returns: sampler,  dataloader