class_docstr: Sanity tests for multitask data.
docstr: Test that data associated with a tasks stays associated with it.
docstr_tok: ["Test","that","data","associated","with","a","tasks","stays","associated","with","it","."]
code: def test_multitask_data(self):
      """Test that data associated with a tasks stays associated with it."""
      tasks = ["task0", "task1"]
      n_samples = 100
      n_features = 3
      n_tasks = len(tasks)
  
      # Generate dummy dataset
      ids = np.array(["C"] * n_samples, dtype=object)
      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.DiskDataset.from_numpy(X, y, w, ids, tasks)
      np.testing.assert_allclose(X, dataset.X)
      np.testing.assert_allclose(y, dataset.y)
      np.testing.assert_allclose(w, dataset.w)
  
file_path: deepchem/deepchem/models/tests/test_multitask.py
imports: import os
  import numpy
  import unittest
  import deepchem
label_desc: Use image node_id 3 for calling the TestMultitask obj's underlying member method code with example usage: obj.test_multitask_data() without return types