code: def _get_zoom_level(distance: float) -> int:
      """Get the zoom level for a given distance in degrees.
  
      See https://wiki.openstreetmap.org/wiki/Zoom_levels for reference.
  
      Parameters
      ----------
      distance : float
          How many degrees of longitude should fit in the map.
  
      Returns
      -------
      int
          The zoom level, from 0 to 20.
  
      """
      for i in range(len(_ZOOM_LEVELS) - 1):
          if _ZOOM_LEVELS[i + 1] < distance <= _ZOOM_LEVELS[i]:
              return i
  
      # For small number of points the default zoom level will be used.
      return _DEFAULT_ZOOM_LEVEL
  
imports: import copy
  import hashlib
  import json
  from typing import TYPE_CHECKING, Any, Collection, Dict, Iterable, Optional, Set, Tuple, Union, cast
  import pandas
  from typing_extensions import Final, TypeAlias
  import streamlit.elements.deck_gl_json_chart
  from streamlit import config, type_util
  from streamlit.color_util import Color, IntColorTuple, is_color_like, to_int_color_tuple
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.DeckGlJsonChart_pb2 import DeckGlJsonChart
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.util import HASHLIB_KWARGS
label_desc: Use image node_id 6 for calling a global function with example usage: _get_zoom_level(distance) and returns: _DEFAULT_ZOOM_LEVEL, i