code: def warn(
      msg: str,
      *args: object,
      category: Optional[Type[Warning]] = None,
      stacklevel: int = 1,
  ):
      """Raises a warning to the user if the min_level <= WARN.
  
      Args:
          msg: The message to warn the user
          *args: Additional information to warn the user
          category: The category of warning
          stacklevel: The stack level to raise to
      """
      if min_level <= WARN:
          warnings.warn(
              colorize(f"WARN: {msg % args}", "yellow"),
              category=category,
              stacklevel=stacklevel + 1,
          )
  
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 4 for calling a global function with example usage: warn(msg) without return types