code: def process_spark_xshards(
      spark_xshards: "SparkXShards", num_workers: int
  ) -> "RayXShards":
      from bigdl.orca.data.ray_xshards import RayXShards
  
      data = spark_xshards
      ray_xshards = RayXShards.from_spark_xshards(data)
      return ray_xshards
  
imports: from bigdl.dllib.utils.file_utils import get_file_list, callZooFunc
  from bigdl.dllib.utils.utils import convert_row_to_numpy
  from bigdl.dllib.utils.common import *
  from bigdl.dllib.utils.log4Error import *
  import pyspark.sql.functions
  from typing import TYPE_CHECKING, Dict, List, Optional, Type, Union
  from numpy import float32, int32
label_desc: Use image node_id 17 for calling a global function with example usage: process_spark_xshards(spark_xshards, num_workers) and returns: ray_xshards