class_docstr: Test basic top-level API for dataset objects.
class_docstr_tok: ["Test","basic","top-level","API","for","dataset","objects","."]
docstr: Test creating a PyTorch Dataset from a NumpyDataset.
docstr_tok: ["Test","creating","a","PyTorch","Dataset","from","a","NumpyDataset","."]
code: def test_make_pytorch_dataset_from_numpy(self):
      """Test creating a PyTorch Dataset from a NumpyDataset."""
      X = np.random.random((100, 5))
      y = np.random.random((100, 1))
      ids = [str(i) for i in range(100)]
      dataset = dc.data.NumpyDataset(X, y, ids=ids)
      _validate_pytorch_dataset(dataset)
  
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 2 for calling the TestDatasets obj's underlying member method code with example usage: obj.test_make_pytorch_dataset_from_numpy() without return types