code: def testDoublesidedMaxwellSample(self, loc, scale):
      n = int(100e3)
      dsmaxwell = doublesided_maxwell.DoublesidedMaxwell(
          loc=loc, scale=scale, validate_args=True
      )
      samples = dsmaxwell.sample(n, seed=test_util.test_seed())
      mean = dsmaxwell.mean()
      variance = dsmaxwell.variance()
  
      [samples_, mean_, variance_] = self.evaluate(
          [samples, mean, variance]
      )
  
      # Check first and second moments.
      self.assertEqual((n,), samples_.shape)
      self.assertAllClose(np.mean(samples_), mean_, atol=0.0, rtol=0.1)
      self.assertAllClose(
          np.var(samples_), variance_, atol=0.0, rtol=0.1
      )
  
file_path: probability/tensorflow_probability/python/distributions/doublesided_maxwell_test.py
imports: from absl.testing import parameterized
  import numpy
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import doublesided_maxwell
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 7 for calling the DoublesidedMaxwellTest obj's underlying member method code with example usage: obj.testDoublesidedMaxwellSample(loc, scale) without return types