code: def test_transform_numpy():
      """Test that the transform() method works for NumpyDatasets."""
      num_datapoints = 100
      num_features = 10
      num_tasks = 10
  
      # Generate data
      X = np.random.rand(num_datapoints, num_features)
      y = np.random.randint(2, size=(num_datapoints, num_tasks))
      w = np.random.randint(2, size=(num_datapoints, num_tasks))
      ids = np.array(["id"] * num_datapoints)
      dataset = dc.data.NumpyDataset(X, y, w, ids)
  
      # Transform it
  
      transformer = TestTransformer(transform_X=True, transform_y=True)
      transformed = dataset.transform(transformer)
      np.testing.assert_array_equal(X, dataset.X)
      np.testing.assert_array_equal(y, dataset.y)
      np.testing.assert_array_equal(w, dataset.w)
      np.testing.assert_array_equal(ids, dataset.ids)
      np.testing.assert_array_equal(2 * X, transformed.X)
      np.testing.assert_array_equal(1.5 * y, transformed.y)
      np.testing.assert_array_equal(w, transformed.w)
      np.testing.assert_array_equal(ids, transformed.ids)
  
imports: import random
  import math
  import unittest
  import os
  import numpy
  import pytest
  import deepchem
  import pandas
  import tempfile
label_desc: Use image node_id 15 for calling a global function with example usage: test_transform_numpy() without return types