code: def test_has_render_window_fail():
      pl = pv.Plotter()
      pl.close()
      with pytest.raises(
          RenderWindowUnavailable, match="not available"
      ):
          pl._check_has_ren_win()
      with pytest.raises(
          RenderWindowUnavailable, match="not available"
      ):
          pl._make_render_window_current()
  
imports: import os
  import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista.core.errors import MissingDataError, PyVistaDeprecationWarning
  from pyvista.plotting import _plotting
  from pyvista.plotting.errors import RenderWindowUnavailable
  from pyvista.plotting.utilities.gl_checks import uses_egl
label_desc: Use image node_id 2 for calling a global function with example usage: test_has_render_window_fail() without return types