code: def test_toy_sample(dataset_class):
      dataset = dataset_class(10, num_tasks=1000, noise_std=None)
      task = dataset[0]
      input, target = task[0]
  
      assert isinstance(input, np.ndarray)
      assert isinstance(target, np.ndarray)
      assert input.shape == (1,)
      assert target.shape == (1,)
  
file_path: pytorch-meta/torchmeta/tests/toy/test_toy.py
imports: import pytest
  import numpy
  from collections import OrderedDict
  from torchmeta.utils.data import Task, MetaDataset
  from torchmeta.toy import Sinusoid, Harmonic, SinusoidAndLine
  from torchmeta.toy import helpers
label_desc: Use image node_id 3 for calling a global function with example usage: test_toy_sample(dataset_class) without return types