code: def corr(
      x: RDD[Vector], *, method: Optional["CorrMethodType"] = ...
  ) -> Matrix:
      ...
  
imports: import sys
  from typing import cast, overload, List, Optional, TYPE_CHECKING, Union
  from numpy import ndarray
  from py4j.java_gateway import JavaObject
  from pyspark.rdd import RDD
  from pyspark.mllib.common import callMLlibFunc, JavaModelWrapper
  from pyspark.mllib.linalg import Matrix, Vector, _convert_to_vector
  from pyspark.mllib.regression import LabeledPoint
  from pyspark.mllib.stat.test import ChiSqTestResult, KolmogorovSmirnovTestResult
label_desc: Use image node_id 2 for calling the Statistics obj's underlying member method code with example usage: obj.corr(x) without return types