class_docstr: A collection of data which can be pre-processed in parallel on Spark
class_docstr_tok: ["A","collection","of","data","which","can","be","pre-processed","in","parallel","on","Spark"]
docstr: Returns a list that contains all of the elements in this SparkXShards
  
  :return: a list of data elements.
docstr_tok: ["Returns","a","list","that","contains","all","of","the","elements","in","this","SparkXShards",":","return",":","a","list","of","data","elements","."]
code: def collect(self):
      """
  
      Returns a list that contains all of the elements in this SparkXShards
  
      :return: a list of data elements.
      """
      return self.rdd.collect()
  
imports: from py4j.protocol import Py4JError
  from zoo.orca.data.utils import *
  from zoo.orca import OrcaContext
  from zoo.common.nncontext import init_nncontext
  from zoo import ZooContext, get_node_and_core_number
  from zoo.util import nest
label_desc: Use image node_id 3 for calling the SparkXShards obj's underlying member method code with example usage: obj.collect() and returns: self