code: def test_open_in_browser_deprecation_warning(monkeypatch):
      monkeypatch.setattr(webbrowser, "open", Get())
      doc = html_document.HTMLDocument("hello")
      with pytest.warns(DeprecationWarning, match="temp_file_lifetime"):
          doc.open_in_browser(temp_file_lifetime=30.0)
  
file_path: nilearn/nilearn/plotting/tests/test_html_document.py
imports: import time
  import webbrowser
  from unittest.mock import Mock
  import pytest
  import requests
  from numpy.testing import assert_no_warnings
  from nilearn.plotting import html_document
label_desc: Use image node_id 3 for calling a global function with example usage: test_open_in_browser_deprecation_warning(monkeypatch) without return types