code: def test_pseudo_shuffled(data: Iterable) -> None:
      list_data = list(data)
      shuffled_iter = PseudoShuffled(
          iter(list_data), shuffle_buffer_length=5
      )
      shuffled_data = list(shuffled_iter)
      assert len(shuffled_data) == len(list_data)
      assert all(d in shuffled_data for d in list_data)
  
imports: import itertools
  import pickle
  import tempfile
  from dataclasses import dataclass
  from pathlib import Path
  from typing import Iterable, List, Tuple
  import numpy
  from numpy.testing import assert_equal
  from toolz import take
  import pytest
  from gluonts.dataset.artificial import constant_dataset
  from gluonts.itertools import batcher, Cached, Chain, PickleCached, Cyclic, IterableSlice, SizedIterableSlice, PseudoShuffled, rows_to_columns, columns_to_rows, select, pluck_attr, power_set, Map, StarMap, Filter, join_items, RandomYield
label_desc: Use image node_id 2 for calling a global function with example usage: test_pseudo_shuffled(data) without return types