code: def no_cover_compat(request):
      """A pytest fixture to disable coverage.
  
      .. note::
  
           After the next version of ``pytest-cov`` is released, it will be possible to directly
           use the ``no_cover`` fixture or marker.
      """
  
      # Check with hasplugin to avoid getplugin exception in older pytest.
      if request.config.pluginmanager.hasplugin("_cov"):
          plugin = request.config.pluginmanager.getplugin("_cov")
          if plugin.cov_controller:
              plugin.cov_controller.cov.stop()
              plugin.cov_controller.unset_env()
              yield plugin.cov_controller
              plugin.cov_controller.set_env()
              plugin.cov_controller.cov.start()
  
label_desc: Use image node_id 2 for calling a global function with example usage: no_cover_compat(request) without return types