code: def test_check_reset_return_info_deprecation(
      test, func: callable, message: str
  ):
      """Tests that return_info has been correct deprecated as an argument to `env.reset()`."""
  
      with pytest.warns(
          test,
          match=f"^\\x1b\\[33mWARN: {re.escape(message)}\\x1b\\[0m$",
      ):
          check_reset_return_info_deprecation(
              GenericTestEnv(reset_fn=func)
          )
  
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 13 for calling a global function with example usage: test_check_reset_return_info_deprecation(test, func, message) without return types