class_docstr: Sanity tests for multitask data.
docstr: Test that order of tasks in multitask datasets is preserved.
docstr_tok: ["Test","that","order","of","tasks","in","multitask","datasets","is","preserved","."]
code: def test_multitask_order(self):
      """Test that order of tasks in multitask datasets is preserved."""
      input_file = os.path.join(
          self.current_dir, "assets/multitask_example.csv"
      )
      tasks = [
          "task0",
          "task1",
          "task2",
          "task3",
          "task4",
          "task5",
          "task6",
          "task7",
          "task8",
          "task9",
          "task10",
          "task11",
          "task12",
          "task13",
          "task14",
          "task15",
          "task16",
      ]
  
      featurizer = dc.feat.CircularFingerprint(size=1024)
  
      loader = dc.data.CSVLoader(
          tasks=tasks, feature_field="smiles", featurizer=featurizer
      )
      dataset = loader.create_dataset(input_file)
  
      splitter = dc.splits.ScaffoldSplitter()
      train_dataset, test_dataset = splitter.train_test_split(dataset)
  
      assert np.array_equal(train_dataset.get_task_names(), tasks)
      assert np.array_equal(test_dataset.get_task_names(), tasks)
  
file_path: deepchem/deepchem/models/tests/test_multitask.py
imports: import os
  import numpy
  import unittest
  import deepchem
label_desc: Use image node_id 2 for calling the TestMultitask obj's underlying member method code with example usage: obj.test_multitask_order() without return types