code: def concatenate_children(node, concatenate_with, strategy):
      
      _, _, getter, concatenate_with = [x for x in _HIERARCHY if isinstance(node, x[0])][0]
      tokens = [get_text(x, strategy) for x in getattr(node, getter)()]
      return concatenate_with.join(tokens).strip()
docs: Concatenate children of node according to https://ocr-d.github.io/page#consistency-of-text-results-on-different-levels