code: def _is_working_zoom_level(zoom, tiles, session):
      """Check if the zoom level works for the given tileset."""
      url = tiles.format(s="a", x=0, y=0, z=zoom)
      response = session.get(url, timeout=5)
      if response.status_code < 400:
          return True
      return False
  
file_path: folium/tests/test_raster_layers.py
imports: import pytest
  import xyzservices
  from jinja2 import Template
  import folium
  from folium.utilities import normalize
label_desc: Use image node_id 2 for calling a global function with example usage: _is_working_zoom_level(zoom, tiles, session) and returns: False, True