code: def smiles_regression_dataset(tmpdir):
      smiles = [
          "CCN(CCSC)C(=O)N[C@@](C)(CC)C(F)(F)F",
          "CC1(C)CN(C(=O)Nc2cc3ccccc3nn2)C[C@@]2(CCOC2)O1",
      ]
      labels = [3.112, 2.432]
      df = pd.DataFrame(
          list(zip(smiles, labels)), columns=["smiles", "task1"]
      )
      filepath = os.path.join(tmpdir, "smiles.csv")
      df.to_csv(filepath)
  
      loader = dc.data.CSVLoader(
          ["task1"],
          feature_field="smiles",
          featurizer=dc.feat.DummyFeaturizer(),
      )
      dataset = loader.create_dataset(filepath)
      return dataset
  
imports: import os
  import pytest
  import deepchem
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: smiles_regression_dataset(tmpdir) and returns: dataset