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: Transform each shard in the XShards using specified function.
  
  :param func: pre-processing function
  :param args: arguments for the pre-processing function
  :return: DataShard
docstr_tok: ["Transform","each","shard","in","the","XShards","using","specified","function",".",":","param","func",":","pre-processing","function",":","param","args",":","arguments","for","the","pre-processing","function",":","return",":","DataShard"]
code: def transform_shard(self, func, *args):
      """
  
      Transform each shard in the XShards using specified function.
  
      :param func: pre-processing function
      :param args: arguments for the pre-processing function
      :return: DataShard
      """
      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 1 for calling the XShards obj's underlying member method code with example usage: obj.transform_shard(func) without return types