code: def deprecation(msg: str, *args: object):
      """Logs a deprecation warning to users."""
      warn(msg, *args, category=DeprecationWarning, stacklevel=2)
  
file_path: gym/gym/logger.py
imports: import sys
  import warnings
  from typing import Optional, Type
  from gym.utils import colorize
label_desc: Use image node_id 5 for calling a global function with example usage: deprecation(msg) without return types