code: def all_ports(self):
          
          from mbuild.port import Port
          return [successor for successor in self.successors()
                  if isinstance(successor, Port)]
docs: Return all Ports referenced by this Compound and its successors
  
          Returns
          -------
          list of mb.Compound
              A list of all Ports referenced by this Compound and its successors