def METHOD_NAME(self, port):
    if type(port) in [int, str]:
        port = self.get_output(port)
        if port is None:
            return
    if self.is_expanded:
        sub_graph = self.get_sub_graph()
        port_node = sub_graph.get_node_by_port(port)
        if port_node:
            sub_graph.remove_node(port_node, push_undo=False)
    super(GroupNode, self).METHOD_NAME(port)