code: def test_toy_helpers(name, dataset_class):
      dataset_fn = getattr(helpers, name)
      dataset = dataset_fn(shots=5, test_shots=15)
      assert isinstance(dataset, dataset_class)
  
      task = dataset[0]
      assert isinstance(task, OrderedDict)
      assert "train" in task
      assert "test" in task
  
      train, test = task["train"], task["test"]
      assert isinstance(train, Task)
      assert isinstance(test, Task)
      assert len(train) == 5
      assert len(test) == 15
  
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 4 for calling a global function with example usage: test_toy_helpers(name, dataset_class) without return types