def METHOD_NAME(self, new_tile):
    """Add labels for all the ports to the parent (TiledCompound)."""
    for port in new_tile.children:
        if isinstance(port, Port):
            self.add(port, containment=False)