code: def test_no_error_warnings(env):
      """A full version of this test with all gym envs is run in tests/envs/test_envs.py."""
      with warnings.catch_warnings(record=True) as caught_warnings:
          check_env(env)
  
      assert len(caught_warnings) == 0, [
          warning.message for warning in caught_warnings
      ]
  
imports: import re
  import warnings
  from typing import Tuple, Union
  import numpy
  import pytest
  import gym
  from gym import spaces
  from gym.core import ObsType
  from gym.utils.env_checker import check_env, check_reset_options, check_reset_return_info_deprecation, check_reset_return_type, check_reset_seed, check_seed_deprecation
  from tests.testing_env import GenericTestEnv
label_desc: Use image node_id 1 for calling a global function with example usage: test_no_error_warnings(env) without return types