code: def skip_if_installed(package: str):
      """
      Skip a test if a package is installed.
  
      Parameters
      ----------
      package : str
          The name of the package.
      """
      return pytest.mark.skipif(
          safe_import(package),
          reason=f"Skipping because {package} is installed.",
      )
  
imports: from __future__ import annotations
  import locale
  from typing import Callable
  import numpy
  import pytest
  from pandas._config import get_option
  from pandas._typing import F
  from pandas.compat import IS64, is_platform_windows
  from pandas.compat._optional import import_optional_dependency
  from pandas.core.computation.expressions import NUMEXPR_INSTALLED, USE_NUMEXPR
  from pandas.util.version import Version
label_desc: Use image node_id 5 for calling a global function with example usage: skip_if_installed(package) and returns: pytest