code: def test_synth_pausable(dataset):
      stream = iter(dataset)
      s1 = itertools.islice(stream, 3)
      s2 = itertools.islice(stream, 2)
      assert list(dataset.take(5)) == list(itertools.chain(s1, s2))
  
file_path: river/river/datasets/test_datasets.py
imports: from __future__ import annotations
  import functools
  import importlib
  import inspect
  import itertools
  from urllib import request
  import pytest
  from river import datasets
  from .None import base
label_desc: Use image node_id 8 for calling a global function with example usage: test_synth_pausable(dataset) without return types