class_docstr: A tree implementation.
class_docstr_tok: ["A","tree","implementation","."]
docstr: Get the trunk nodes of the tree starting at this root.
  
  Args:
      limit_nodes_to: Limit searching to trunk nodes with the names
          (DataIDs) specified and the children of these nodes.
      unique: Only include individual trunk nodes once
      limit_children_to: Limit searching to the children with the specified
          names. These child nodes will be included in the result,
          but not their children.
  
  Returns:
      list of trunk nodes
docstr_tok: ["Get","the","trunk","nodes","of","the","tree","starting","at","this","root",".","Args",":","limit_nodes_to",":","Limit","searching","to","trunk","nodes","with","the","names","(","DataIDs",")","specified","and","the","children","of","these","nodes",".","unique",":","Only","include","individual","trunk","nodes","once","limit_children_to",":","Limit","searching","to","the","children","with","the","specified","names",".","These","child","nodes","will","be","included","in","the","result",",","but","not","their","children",".","Returns",":","list","of","trunk","nodes"]
code: def trunk(
      self,
      limit_nodes_to: Optional[Iterable[DataID]] = None,
      unique: bool = True,
      limit_children_to: Optional[Container[DataID]] = None,
  ) -> list[Node]:
      """Get the trunk nodes of the tree starting at this root.
  
      Args:
          limit_nodes_to: Limit searching to trunk nodes with the names
              (DataIDs) specified and the children of these nodes.
          unique: Only include individual trunk nodes once
          limit_children_to: Limit searching to the children with the specified
              names. These child nodes will be included in the result,
              but not their children.
  
      Returns:
          list of trunk nodes
  
      """
      if limit_nodes_to is None:
          return self._root.trunk(
              unique=unique, limit_children_to=limit_children_to
          )
  
      res = list()
      for child_id in limit_nodes_to:
          child_node = self._all_nodes[child_id]
          for sub_child in child_node.trunk(
              unique=unique, limit_children_to=limit_children_to
          ):
              if not unique or sub_child not in res:
                  res.append(sub_child)
      return res
  
imports: from __future__ import annotations
  from typing import Container, Iterable, Optional
  import numpy
  from satpy import DataID, DatasetDict
  from satpy.dataset import ModifierTuple, create_filtered_query
  from satpy.dataset.data_dict import TooManyResults, get_key
  from satpy.node import EMPTY_LEAF_NAME, LOG, CompositorNode, MissingDependencies, Node, ReaderNode
label_desc: Use image node_id 3 for calling the Tree obj's underlying member method code with example usage: obj.trunk(limit_nodes_to, unique, limit_children_to) and returns: res, self