def remove_groups(self, group_list):
if isinstance(group_list, string_types) orhasattr(group_list, "<STR_LIT:id>"):<EOL><INDENT>warn("<STR_LIT>")<EOL>group_list = [group_list]<EOL><DEDENT>for group in group_list:<EOL><INDENT>if group.id not in self.groups:<EOL><INDENT>LOGGER.warning("<STR_LIT>", group, self)<EOL><DEDENT>else:<EOL><INDENT>self.groups.remove(group)<EOL>group._model = None<EOL><DEDENT><DEDENT>
Remove groups from the model.

        Members of each group are not removed
        from the model (i.e. metabolites, reactions, and genes in the group
        stay in the model after any groups containing them are removed).

        Parameters
        ----------
        group_list : list
            A list of `cobra.Group` objects to remove from the model.