code: def set_max_img_views_before_warning(new_value):
      """Set the number of open views which triggers a warning.
  
      If `None` or a negative number, disable the memory warning.
      """
      global MAX_IMG_VIEWS_BEFORE_WARNING
      MAX_IMG_VIEWS_BEFORE_WARNING = new_value
  
imports: import warnings
  import weakref
  import webbrowser
  from html import escape
  from http import HTTPStatus
  from http.server import BaseHTTPRequestHandler
  from queue import Empty, Queue
  from socketserver import TCPServer
  from threading import Thread
  from nilearn._utils import remove_parameters
label_desc: Use image node_id 1 for calling a global function with example usage: set_max_img_views_before_warning(new_value) without return types