docs: def dump_declarations(declarations, file_path):
      """
      Dump declarations tree rooted at each of the included nodes to the file
  
      :param declarations: either a single :class:declaration_t object or a list
          of :class:declaration_t objects
      :param file_path: path to a file
  
      """
  
      with open(file_path, "w+") as f:
          print_declarations(declarations, writer=f.write)