code: def testMoments(self, loc, scale, low, high):
      tf_dist, sp_dist = self.constructDists(loc, scale, low, high)
      self.assertAlmostEqual(
          self.evaluate(tf_dist.mean()), sp_dist.mean(), places=3
      )
      self.assertAlmostEqual(
          self.evaluate(tf_dist.variance()), sp_dist.var(), places=3
      )
  
imports: import itertools
  import unittest
  from absl.testing import parameterized
  import numpy
  from scipy import stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import truncated_normal
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 7 for calling the TruncatedNormalTestCompareWithScipy obj's underlying member method code with example usage: obj.testMoments(loc, scale, low, high) without return types