code: def peak_load_generation_at_node(nodes):
      
  
      loads = [node.peak_load for node in nodes
               if isinstance(node, LVLoadDing0)]
      peak_load = sum(loads)
  
      generation = [node.capacity for node in nodes
               if isinstance(node, GeneratorDing0)]
      peak_generation = sum(generation)
  
      return peak_load, peak_generation
docs: Get maximum occuring load and generation at a certain node
  
      Summarizes peak loads and nominal generation power of descendant nodes
      of a branch
  
      Parameters
      ----------
      nodes : :any:`list`
          Any LV grid Ding0 node object that is part of the grid topology
  
      Return
      ------
      :any:`float`
          peak_load : Sum of peak loads of descendant nodes
      :any:`float`
          peak_generation : Sum of nominal power of generation at descendant nodes