class_docstr: A node object.
class_docstr_tok: ["A","node","object","."]
docstr: Get the leaves of the tree starting at this root.
docstr_tok: ["Get","the","leaves","of","the","tree","starting","at","this","root","."]
code: def leaves(self, unique=True):
      """Get the leaves of the tree starting at this root."""
      if self.name is EMPTY_LEAF_NAME:
          return []
      elif not self.children:
          return [self]
  
      res = list()
      for child in self.children:
          for sub_child in child.leaves(unique=unique):
              if not unique or sub_child not in res:
                  res.append(sub_child)
      return res
  
imports: from satpy.utils import get_logger
label_desc: Use image node_id 13 for calling the Node obj's underlying member method code with example usage: obj.leaves(unique) and returns: res, list, list