code: def extend_node_list(acc, new):
          
          if new is None:
              new = []
          elif not isinstance(new, list):
              new = [new]
          return acc + new
docs: Extend accumulator with Node(s) from new