code: def test_scscore_reload():
      """Test reloading of ScScoreModel"""
      n_samples = 10
      n_features = 3
      n_tasks = 1
  
      # Create a dataset and an input function for processing it.
  
      X = np.random.rand(n_samples, 2, n_features)
      y = np.random.randint(2, size=(n_samples, n_tasks))
      dataset = dc.data.NumpyDataset(X, y)
  
      model_dir = tempfile.mkdtemp()
      model = dc.models.ScScoreModel(
          n_features, dropouts=0, model_dir=model_dir
      )
      model.fit(dataset, nb_epoch=100)
      pred = model.predict(dataset)
      assert np.array_equal(y, pred[0] > pred[1])
  
      reloaded_model = dc.models.ScScoreModel(
          n_features, dropouts=0, model_dir=model_dir
      )
      reloaded_model.restore()
      reloaded_pred = reloaded_model.predict(dataset)
      assert len(pred) == len(reloaded_pred)
      for p, r in zip(pred, reloaded_pred):
          assert np.all(p == r)
  
file_path: deepchem/deepchem/models/tests/test_scscore.py
imports: import unittest
  import tempfile
  import pytest
  import deepchem
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_scscore_reload() without return types