def train_models(models, data, labels):
    """
    Function to train the models from the given list of model objects

    Args:
    models = list of tuples of models objects and their names
    data = traing dataset rows as samples and columns as genes
    labels = labels for the given samples in the dataset

    Returns:
    list of trained models
    """
    for name, model in models:
        model.fit(data, labels)
    return models