code: def test_disable_possible_user_warnings():
      with pytest.warns(PossibleUserWarning):
          warnings.warn("test", PossibleUserWarning)
      disable_possible_user_warnings()
      with no_warning_call(PossibleUserWarning):
          warnings.warn("test", PossibleUserWarning)
      warnings.resetwarnings()
  
file_path: pytorch-lightning/tests/tests_fabric/utilities/test_warnings.py
imports: import importlib
  import inspect
  import os
  import sys
  import warnings
  from contextlib import redirect_stderr
  from io import StringIO
  from pathlib import Path
  from unittest import mock
  import lightning.fabric
  import pytest
  from lightning.fabric.utilities.rank_zero import rank_zero_deprecation, rank_zero_warn
  from lightning.fabric.utilities.warnings import PossibleUserWarning, _is_path_in_lightning, disable_possible_user_warnings
  from lightning_utilities.core.rank_zero import WarningCache, _warn
  from lightning_utilities.test.warning import no_warning_call
label_desc: Use image node_id 3 for calling a global function with example usage: test_disable_possible_user_warnings() without return types