code: def hist(
      data,
      cmap="hot",
      alpha=220,
      colorscale="sqrt",
      binsize=16,
      show_tooltip=False,
      scalemin=0,
      scalemax=None,
      f_group=None,
      show_colorbar=True,
  ):
      """Create a 2D histogram
  
      :param data: data access object
      :param cmap: colormap name
      :param alpha: color alpha
      :param colorscale: scaling [lin, log, sqrt]
      :param binsize: size of the hist bins
      :param show_tooltip: if True, will show the value of bins on mouseover
      :param scalemin: min value for displaying a bin
      :param scalemax: max value for a bin
      :param f_group: function to apply to samples in the same bin. Default is to count
      :param show_colorbar: show colorbar
      """
      from geoplotlib.layers import HistogramLayer
  
      _global_config.layers.append(
          HistogramLayer(
              data,
              cmap=cmap,
              alpha=alpha,
              colorscale=colorscale,
              binsize=binsize,
              show_tooltip=show_tooltip,
              scalemin=scalemin,
              scalemax=scalemax,
              f_group=f_group,
              show_colorbar=show_colorbar,
          )
      )
  
imports: import base64
  import traceback
  import pyglet
  from geoplotlib.core import GeoplotlibApp
  from core import FONT_NAME
label_desc: Use image node_id 7 for calling a global function with example usage: hist(data, cmap, alpha, colorscale, binsize, show_tooltip, scalemin, scalemax, f_group, show_colorbar) without return types