code: def test_flat_space_contains_flat_points(space):
      """Test that the flattened samples are contained within the flattened space."""
      flattened_samples = [
          utils.flatten(space, space.sample()) for _ in range(10)
      ]
      flat_space = utils.flatten_space(space)
  
      for flat_sample in flattened_samples:
          assert flat_sample in flat_space
  
file_path: gym/tests/spaces/test_utils.py
imports: from itertools import zip_longest
  from typing import Optional
  import numpy
  import pytest
  import gym
  from gym.spaces import Box, Graph, utils
  from gym.utils.env_checker import data_equivalence
  from tests.spaces.utils import TESTING_SPACES, TESTING_SPACES_IDS
label_desc: Use image node_id 4 for calling a global function with example usage: test_flat_space_contains_flat_points(space) without return types