class_docstr: Test that support generation happens properly.
class_docstr_tok: ["Test","that","support","generation","happens","properly","."]
docstr: Test that fixed index support can be removed from dataset.
docstr_tok: ["Test","that","fixed","index","support","can","be","removed","from","dataset","."]
code: def test_get_task_minus_support_simple(self):
      """Test that fixed index support can be removed from dataset."""
      n_samples = 20
      n_support = 5
      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)
  
      support_dataset = dc.data.NumpyDataset(
          X[:n_support], y[:n_support], w[:n_support], ids[:n_support]
      )
  
      task_dataset = dc.data.get_task_dataset_minus_support(
          dataset, support_dataset, task=0
      )
  
      # Assert all support elements have been removed
      assert len(task_dataset) == n_samples - n_support
      np.testing.assert_array_equal(task_dataset.X, X[n_support:])
      np.testing.assert_array_equal(task_dataset.y, y[n_support:])
      np.testing.assert_array_equal(task_dataset.w, w[n_support:])
      np.testing.assert_array_equal(task_dataset.ids, ids[n_support:])
  
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 7 for calling the TestSupports obj's underlying member method code with example usage: obj.test_get_task_minus_support_simple() without return types