code: def _flattenPortsSide(side: List[LNode]) -> List[LNode]:
      
      new_side = []
      for i in side:
          for new_p in flattenPort(i):
              new_side.append(new_p)
      return new_side
docs: Flatten hierarchical ports on node side