class_docstr: Test that support generation happens properly.
class_docstr_tok: ["Test","that","support","generation","happens","properly","."]
docstr: Tests that get_task_testsamples correctly.
docstr_tok: ["Tests","that","get_task_testsamples","correctly","."]
code: def test_get_task_test(self):
      """Tests that get_task_testsamples correctly."""
      n_samples = 20
      n_features = 3
      n_tasks = 1
  
      # Generate dummy dataset
      np.random.seed(123)
      ids = np.arange(n_samples)
      X = np.random.rand(n_samples, n_features)
      y = np.random.randint(2, size=(n_samples, n_tasks))
      w = np.ones((n_samples, n_tasks))
      dataset = dc.data.NumpyDataset(X, y, w, ids)
  
      n_episodes = 20
      n_test = 10
      tests = dc.data.get_task_test(
          dataset, n_episodes, n_test, task=0, log_every_n=10
      )
  
      assert len(tests) == n_episodes
      for test in tests:
          assert len(test) == n_test
  
file_path: deepchem/deepchem/data/tests/test_support_generator.py
imports: import logging
  import numpy
  import unittest
  import deepchem
label_desc: Use image node_id 4 for calling the TestSupports obj's underlying member method code with example usage: obj.test_get_task_test() without return types