code: def testChi2Variance(self):
      df_v = np.array([1.0, 3, 5], np.float64)
      expected_variances = stats.chi2.var(df_v)
      dist = chi2.Chi2(df=df_v, validate_args=True)
      self.assertEqual(dist.variance().shape, (3,))
      self.assertAllClose(
          self.evaluate(dist.variance()), expected_variances
      )
  
imports: import numpy
  from scipy import special
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import chi2
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 7 for calling the Chi2Test obj's underlying member method code with example usage: obj.testChi2Variance() without return types