code: def testDoublesidedMaxwellPDF(self):
      # Use only positive values since we will use the one sided maxwell
      # as a test.
      x = np.arange(1, 5, dtype=np.float64)
      loc = 1.0
      scale = 1.0
  
      # Test the pdf value by using its relationship to the 1-sided Maxwell.
      dsmaxwell = doublesided_maxwell.DoublesidedMaxwell(
          loc=loc, scale=scale, validate_args=True
      )
      log_prob = dsmaxwell.log_prob(x)
      expected_log_prob = tf.identity(
          stats.maxwell.logpdf(np.abs(x), loc, scale) - np.log(2)
      )
      self.assertAllClose(expected_log_prob, log_prob)
  
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 5 for calling the DoublesidedMaxwellTest obj's underlying member method code with example usage: obj.testDoublesidedMaxwellPDF() without return types