code: def labs(**group_labels):
      """Sets the labels for the legend groups of a plot.
  
      Examples
      --------
  
      Create a scatterplot and label the legend groups according to their field names:
  
      >>> ht = hl.utils.range_table(10)
      >>> ht = ht.annotate(squared=ht.idx ** 2)
      >>> ht = ht.annotate(even=hl.if_else(ht.idx % 2 == 0, "yes", "no"))
      >>> ht = ht.annotate(threeven=hl.if_else(ht.idx % 3 == 0, "good", "bad"))
      >>> fig = (
      ...     hl.ggplot.ggplot(ht, hl.ggplot.aes(x=ht.idx, y=ht.squared))
      ...     + hl.ggplot.geom_point(hl.ggplot.aes(color=ht.even, shape=ht.threeven))
      ...     + hl.ggplot.labs(color="Even", shape="Threeven")
      ... )
  
      Parameters
      ----------
      group_labels:
          Map names of plotly ``legendgroup``s to the desired replacement labels.
  
      Returns
      -------
      :class:`.FigureAttribute`
          Label object to change the legend group labels.
      """
      return Labels(group_labels=group_labels)
  
file_path: hail/hail/python/hail/ggplot/labels.py
imports: from .geoms import FigureAttribute
label_desc: Use image node_id 4 for calling a global function with example usage: labs() and returns: Labels