code: def paga_expression_entropies(adata) -> List[float]:
      
      from scipy.stats import entropy
      groups_order, groups_masks = utils.select_groups(
          adata, key=adata.uns['paga']['groups'])
      entropies = []
      for mask in groups_masks:
          X_mask = adata.X[mask].todense()
          x_median = np.nanmedian(X_mask, axis=1,overwrite_input=True)
          x_probs = (x_median - np.nanmin(x_median)) / (np.nanmax(x_median) - np.nanmin(x_median))
          entropies.append(entropy(x_probs))
      return entropies
docs: Compute the median expression entropy for each node-group.
  
      Parameters
      ----------
      adata : AnnData
          Annotated data matrix.
  
      Returns
      -------
      Entropies of median expressions for each node.