code: def check_reset_return_info_deprecation(env: gym.Env):
      """Makes sure support for deprecated `return_info` argument is dropped.
  
      Args:
          env: The environment to check
      Raises:
          UserWarning
      """
      signature = inspect.signature(env.reset)
      if "return_info" in signature.parameters:
          logger.warn(
              "`return_info` is deprecated as an optional argument to `reset`. `reset`"
              "should now always return `obs, info` where `obs` is an observation, and `info` is a dictionary"
              "containing additional information."
          )
  
file_path: gym/gym/utils/env_checker.py
imports: import inspect
  from copy import deepcopy
  import numpy
  import gym
  from gym import logger, spaces
  from gym.utils.passive_env_checker import check_action_space, check_observation_space, env_render_passive_checker, env_reset_passive_checker, env_step_passive_checker
label_desc: Use image node_id 4 for calling a global function with example usage: check_reset_return_info_deprecation(env) without return types