class_docstr: A collection of data which can be pre-processed in parallel.
class_docstr_tok: ["A","collection","of","data","which","can","be","pre-processed","in","parallel","."]
docstr: return the number of partitions in this XShards
  
  :return: an int
docstr_tok: ["return","the","number","of","partitions","in","this","XShards",":","return",":","an","int"]
code: def num_partitions(self):
      """
  
      return the number of partitions in this XShards
  
      :return: an int
      """
      pass
  
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 XShards obj's underlying member method code with example usage: obj.num_partitions() without return types