code: def check_vecenv_obs(obs, space):
      """Helper method to check observations from multiple environments each belong to
      the appropriate observation space."""
      assert obs.shape[0] == N_ENVS
      for value in obs:
          assert space.contains(value)
  
imports: import collections
  import functools
  import itertools
  import multiprocessing
  import pytest
  import gym
  import numpy
  from stable_baselines.common.vec_env import DummyVecEnv, SubprocVecEnv, VecNormalize, VecFrameStack
label_desc: Use image node_id 4 for calling a global function with example usage: check_vecenv_obs(obs, space) without return types