code: def check_fpu_mode(request):
      """
      Check FPU mode was not changed during the test.
      """
      old_mode = get_fpu_mode()
      yield
      new_mode = get_fpu_mode()
  
      if old_mode != new_mode:
          warnings.warn(
              "FPU mode changed from {0:#x} to {1:#x} during "
              "the test".format(old_mode, new_mode),
              category=FPUModeChangeWarning,
              stacklevel=0,
          )
  
file_path: catboost/contrib/python/scipy/py2/scipy/conftest.py
imports: from __future__ import division, absolute_import, print_function
  import os
  import pytest
  import warnings
  from distutils.version import LooseVersion
  from scipy._lib._fpumode import get_fpu_mode
  from scipy._lib._testutils import FPUModeChangeWarning
label_desc: Use image node_id 3 for calling a global function with example usage: check_fpu_mode(request) without return types