code: def test_right_number_of_results(self):
      num_cols = 1001
      sparse_data = [
          LabeledPoint(0.0, Vectors.sparse(num_cols, [(100, 2.0)])),
          LabeledPoint(0.1, Vectors.sparse(num_cols, [(200, 1.0)])),
      ]
      chi = Statistics.chiSqTest(self.sc.parallelize(sparse_data))
      self.assertEqual(len(chi), num_cols)
      self.assertIsNotNone(chi[1000])
  
imports: import array
  import unittest
  from numpy import array
  from pyspark.mllib.linalg import Vectors, Matrices
  from pyspark.mllib.random import RandomRDDs
  from pyspark.mllib.regression import LabeledPoint
  from pyspark.mllib.stat import Statistics
  from pyspark.errors import IllegalArgumentException
  from pyspark.testing.mllibutils import MLlibTestCase
label_desc: Use image node_id 4 for calling the ChiSqTestTests obj's underlying member method code with example usage: obj.test_right_number_of_results() without return types