class_docstr: Test basic top-level API for dataset objects.
class_docstr_tok: ["Test","basic","top-level","API","for","dataset","objects","."]
code: def test_numpy_iterate_batch_size(self):
      solubility_dataset = load_solubility_data()
      X, y, _, _ = (
          solubility_dataset.X,
          solubility_dataset.y,
          solubility_dataset.w,
          solubility_dataset.ids,
      )
      solubility_dataset = dc.data.NumpyDataset.from_DiskDataset(
          solubility_dataset
      )
      batch_sizes = []
      for X, y, _, _ in solubility_dataset.iterbatches(
          3, epochs=2, pad_batches=False, deterministic=True
      ):
          batch_sizes.append(len(X))
      self.assertEqual([3, 3, 3, 1, 3, 3, 3, 1], batch_sizes)
  
imports: import random
  import math
  import unittest
  import os
  import numpy
  import pytest
  import deepchem
  import pandas
  import tempfile
label_desc: Use image node_id 1 for calling the TestDatasets obj's underlying member method code with example usage: obj.test_numpy_iterate_batch_size() without return types