code: def test_check_seed_deprecation():
      """Tests that `check_seed_deprecation()` throws a warning if `env.seed()` has not been removed."""
  
      message = """Official support for the `seed` function is dropped. Standard practice is to reset gym environments using `env.reset(seed=<desired seed>)`"""
  
      env = GenericTestEnv()
  
      def seed(seed):
          return
  
      with pytest.warns(
          UserWarning,
          match=f"^\\x1b\\[33mWARN: {re.escape(message)}\\x1b\\[0m$",
      ):
          env.seed = seed
          assert callable(env.seed)
          check_seed_deprecation(env)
  
      with warnings.catch_warnings(record=True) as caught_warnings:
          env.seed = []
          check_seed_deprecation(env)
          env.seed = 123
          check_seed_deprecation(env)
          del env.seed
          check_seed_deprecation(env)
          assert len(caught_warnings) == 0
  
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 14 for calling a global function with example usage: test_check_seed_deprecation() without return types