class_docstr: Draw rectangle overlays on a map.
  
  See :func:`folium.vector_layers.path_options` for the `Path` options.
  
  Parameters
  ----------
  bounds: [(lat1, lon1), (lat2, lon2)]
      Two lat lon pairs marking the two corners of the rectangle.
  popup: string or folium.Popup, default None
      Input text or visualization for object displayed when clicking.
  tooltip: str or folium.Tooltip, default None
      Display a text when hovering over the object.
  **kwargs
      Other valid (possibly inherited) options. See:
      https://leafletjs.com/reference.html#rectangle
class_docstr_tok: ["Draw","rectangle","overlays","on","a","map",".","See",":","func",":","`","folium.vector_layers.path_options","`","for","the","`","Path","`","options",".","Parameters","--","--","--","--","--","bounds",":","[","(","lat1",",","lon1",")",",","(","lat2",",","lon2",")","]","Two","lat","lon","pairs","marking","the","two","corners","of","the","rectangle",".","popup",":","string","or","folium.Popup",",","default","None","Input","text","or","visualization","for","object","displayed","when","clicking",".","tooltip",":","str","or","folium.Tooltip",",","default","None","Display","a","text","when","hovering","over","the","object",".","*","*","kwargs","Other","valid","(","possibly","inherited",")","options",".","See",":","https",":","\/\/leafletjs.com\/reference.html","#","rectangle"]
docstr: Compute the bounds of the object itself.
docstr_tok: ["Compute","the","bounds","of","the","object","itself","."]
code: def _get_self_bounds(self) -> List[List[Optional[float]]]:
      """Compute the bounds of the object itself."""
      return get_bounds(self.locations)
  
imports: from typing import List, Optional, Sequence, Union
  from branca.element import MacroElement
  from jinja2 import Template
  from folium.map import Marker, Popup, Tooltip
  from folium.utilities import TypeLine, TypeMultiLine, TypePathOptions, camelize, get_bounds, validate_locations, validate_multi_locations
label_desc: Use image node_id 2 for calling the Rectangle obj's underlying member method code with example usage: obj._get_self_bounds() and returns: get_bounds