code: def test_col_with_different_rdds(self):
      # numpy
      data = RandomRDDs.normalVectorRDD(self.sc, 1000, 10, 10)
      summary = Statistics.colStats(data)
      self.assertEqual(1000, summary.count())
      # array
      data = self.sc.parallelize([range(10)] * 10)
      summary = Statistics.colStats(data)
      self.assertEqual(10, summary.count())
      # array
      data = self.sc.parallelize([pyarray.array("d", range(10))] * 10)
      summary = Statistics.colStats(data)
      self.assertEqual(10, summary.count())
  
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 1 for calling the StatTests obj's underlying member method code with example usage: obj.test_col_with_different_rdds() without return types