class_docstr: Test basic function of molnet
docstr: Tests molnet benchmarking on delaney with graphconvreg.
docstr_tok: ["Tests","molnet","benchmarking","on","delaney","with","graphconvreg","."]
code: def test_delaney_graphconvreg(self):
      """Tests molnet benchmarking on delaney with graphconvreg."""
      datasets = ["delaney"]
      model = "graphconvreg"
      split = "random"
      out_path = tempfile.mkdtemp()
      metric = [dc.metrics.Metric(dc.metrics.pearson_r2_score, np.mean)]
      run_benchmark(
          datasets,
          str(model),
          metric=metric,
          split=split,
          out_path=out_path,
      )
      with open(
          os.path.join(out_path, "results.csv"), newline="\n"
      ) as f:
          reader = csv.reader(f)
          for lastrow in reader:
              pass
          assert lastrow[-4] == "valid"
          assert float(lastrow[-3]) > 0.65
      os.remove(os.path.join(out_path, "results.csv"))
  
file_path: deepchem/deepchem/molnet/tests/test_molnet.py
imports: import csv
  import tempfile
  import unittest
  import numpy
  import os
  import pytest
  import deepchem
  from deepchem.molnet.run_benchmark import run_benchmark
label_desc: Use image node_id 2 for calling the TestMolnet obj's underlying member method code with example usage: obj.test_delaney_graphconvreg() without return types