class_docstr: A class for wälder, that are phylogenetic forests, elements of the Wald Space.
  
  Parameters
  ----------
  topology : Topology
      The structure of the forest.
  weights : array-like
      The edge weights, array of floats between 0 and 1, with m entries, where m is
      the total number of splits/edges in the structure ``top``.
class_docstr_tok: ["A","class","for","w\u00e4lder",",","that","are","phylogenetic","forests",",","elements","of","the","Wald","Space",".","Parameters","--","--","--","--","--","topology",":","Topology","The","structure","of","the","forest",".","weights",":","array-like","The","edge","weights",",","array","of","floats","between","0","and","1",",","with","m","entries",",","where","m","is","the","total","number","of","splits\/edges","in","the","structure","``","top","``","."]
docstr: Get number of labels.
code: def n_labels(self):
      """Get number of labels."""
      return self.topology.n_labels
  
imports: import functools
  import itertools
  import geomstats.backend
  import geomstats.geometry.spd_matrices
  from geomstats.geometry.stratified.point_set import Point, PointSet, _vectorize_point
label_desc: Use image node_id 2 for calling the Wald obj's underlying member method code with example usage: obj.n_labels() and returns: self