code: def dendrogram(adata, groupby, dendrogram_key=None, orientation='top', remove_labels=False,
                 show=None, save=None):
      
      fig, ax = pl.subplots()
      _plot_dendrogram(ax, adata, groupby, dendrogram_key=dendrogram_key,
                       remove_labels=remove_labels, orientation=orientation)
  
      utils.savefig_or_show('dendrogram', show=show, save=save)
  
      return ax
docs: Plots a dendrogram of the categories defined in `groupby`.
  
      See :func:`~scanpy.tl.dendrogram`.
  
      Parameters
      ----------
      adata : :class:`~anndata.AnnData`
      groupby : `str`
          Categorical data column used to create the dendrogram
      dendrogram_key : `str`, optional(default: `None`)
          Key under with the dendrogram information was stored.
          By default the dendrogram information is stored under .uns['dendrogram_' + groupby].
      orientation : `str`, optional(default: `top`)
          Options are `top`, `bottom`, `left`, and `right`. Only when `show_correlation` is False
      remove_labels : `bool`, optional(default: `False`)
      {show_save_ax}
  
      Returns
      -------
  
      Examples
      --------
      >>> adata = sc.datasets.pbmc68k_reduced()
      >>> sc.tl.dendrogram(adata, 'bulk_labels')
      >>> sc.pl.dendrogram(adata, 'bulk_labels')