docstr: Top-down recursion of all spans belonging to this branch off span tree,
  including self
docstr_tok: ["Top-down","recursion","of","all","spans","belonging","to","this","branch","off","span","tree",",","including","self"]
code: def traverse_spans(self) -> Iterator[Span]:
      """Top-down recursion of all spans belonging to this branch off span tree,
      including self
      """
      yield self
      for child in self.children:
          yield from child.traverse_spans()
  
imports: from __future__ import annotations
  import uuid
  import weakref
  from collections import defaultdict
  from collections.abc import Hashable, Iterable, Iterator
  from contextlib import contextmanager
  from itertools import islice
  from typing import TYPE_CHECKING, Any
  import dask.config
  from dask.typing import Key
  from distributed.collections import sum_mappings
  from distributed.itertools import ffill
  from distributed.metrics import time
label_desc: Use image node_id 5 for calling the Span obj's underlying member method code with example usage: obj.traverse_spans() without return types