docs: def _handle_nodes(nodes: MaybeNodeList) -> List[BaseEntity]:
      """Handle node(s) that might be dictionaries."""
      if isinstance(nodes, BaseEntity):
          return [nodes]
  
      return [
          (
              parse_result_to_dsl(node)
              if not isinstance(node, BaseEntity) else
              node
          )
          for node in nodes
      ]