code: def test_reshard_with_X_y():
      """Test resharding on a simple example"""
      X = np.random.rand(100, 10)
      y = np.random.rand(
          100,
      )
      dataset = dc.data.DiskDataset.from_numpy(X, y)
      assert dataset.get_number_shards() == 1
      dataset.reshard(shard_size=10)
      assert (dataset.X == X).all()
      # This is necessary since from_numpy adds in shape information
      assert (dataset.y.flatten() == y).all()
      assert dataset.get_number_shards() == 10
  
file_path: deepchem/deepchem/data/tests/test_reshard.py
imports: import deepchem
  import numpy
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: test_reshard_with_X_y() without return types