code: def _test_dist_with_seed(
      self, seeded_sample, test_function, *args, discrete=False
  ):
      # arguments given to test function, we append size and seed
      # to other arguments
      seed_args = list(args) + [self.test_size, self.test_seed]
      seeded_sample_1 = test_function(*seed_args)
      seeded_sample_2 = test_function(*seed_args)
  
      # We check that samples with same seed are equal
      np.testing.assert_almost_equal(seeded_sample_1, seeded_sample_2)
  
      # This is temporary
      # At the moment, seeds are not cross platform as distributions in
      # C++ depends on standard library shipped with compiler
      import os
  
      if os.name == "posix":
          import platform
  
          if platform.system() == "Darwin":
              # We check that we get the same as what was recorded
              np.testing.assert_almost_equal(
                  seeded_sample_1, seeded_sample
              )
  
      # arguments given to test function, we append size and seed to other
      # arguments
      other_seed_args = list(args) + [
          self.test_size,
          self.test_seed + 1,
      ]
      sample_other_seed = test_function(*other_seed_args)
      self.assert_samples_are_different(
          seeded_sample, sample_other_seed, discrete
      )
  
      # arguments given to test function, we append size to other arguments
      no_seed_args = list(args) + [self.test_size]
      sample_no_seed = test_function(*no_seed_args)
      self.assert_samples_are_different(
          seeded_sample, sample_no_seed, discrete
      )
  
imports: import unittest
  import multiprocessing
  from multiprocessing.pool import Pool
  import itertools
  import numpy
  import threading
  from scipy import stats
  from tick.random import test_uniform, test_gaussian, test_poisson, test_exponential, test_uniform_int, test_discrete, test_uniform_threaded
label_desc: Use image node_id 3 for calling the Test obj's underlying member method code with example usage: obj._test_dist_with_seed(seeded_sample, test_function) without return types