code: def _check_obsolete(key: str) -> None:
      if key in _obsolete_constants and key not in _aliases:
          warnings.warn(
              f"Constant '{key}' is not in current {_current_codata} data set",
              ConstantWarning,
              stacklevel=3,
          )
  
file_path: scipy/scipy/constants/_codata.py
imports: from __future__ import annotations
  import warnings
  from typing import Any
label_desc: Use image node_id 3 for calling a global function with example usage: _check_obsolete(key) without return types