code: def verify_collect_results(data_parts, ndarray_dict):
      import numpy as np
  
      for k, array in ndarray_dict.items():
          reconstructed = np.concatenate(
              [part[k] for part in data_parts]
          )
          assert np.allclose(array, reconstructed)
  
file_path: analytics-zoo/pyzoo/test/zoo/orca/data/test_ray_xshards.py
imports: import pytest
  import ray
  from zoo.orca.data.ray_xshards import RayXShards
label_desc: Use image node_id 2 for calling a global function with example usage: verify_collect_results(data_parts, ndarray_dict) without return types