code: def test_partition_tuple(self):
      data1 = np.random.randn(10, 4)
      data2 = np.random.randn(10, 4)
  
      xshards = XShards.partition((data1, data2))
  
      data_parts = xshards.rdd.collect()
  
      data1_parts = [part[0] for part in data_parts]
      data2_parts = [part[1] for part in data_parts]
  
      reconstructed1 = np.concatenate(data1_parts)
      reconstructed2 = np.concatenate(data2_parts)
      assert np.allclose(data1, reconstructed1)
      assert np.allclose(data2, reconstructed2)
  
file_path: BigDL/python/orca/test/bigdl/orca/data/test_xshards_partition.py
imports: from unittest import TestCase
  import pytest
  import numpy
  from bigdl.orca.data import XShards
label_desc: Use image node_id 2 for calling the TestXshardsPartition obj's underlying member method code with example usage: obj.test_partition_tuple() without return types