code: def test_seeds(space, seed, expected_len):
      seeds = space.seed(seed)
      assert isinstance(seeds, list) and all(
          isinstance(elem, int) for elem in seeds
      )
      assert len(seeds) == expected_len
  
      sample1 = space.sample()
  
      seeds2 = space.seed(seed)
      sample2 = space.sample()
  
      data_equivalence(seeds, seeds2)
      data_equivalence(sample1, sample2)
  
file_path: gym/tests/spaces/test_tuple.py
imports: import numpy
  import pytest
  import gym.spaces
  from gym.spaces import Box, Dict, Discrete, MultiBinary, Tuple
  from gym.utils.env_checker import data_equivalence
label_desc: Use image node_id 2 for calling a global function with example usage: test_seeds(space, seed, expected_len) without return types