import logging


def load_files_serial(feature_files, load_function, **kwargs):
    """
    Function for loading the feature files serially.
    :param feature_files: The collection of feature files to load.
    :param load_function: The function to use for loading the feature files.
    :param kwargs: keyword arguments for the load function.
    :return: A list of loaded feature data frames or numpy arrays.
    """
    logging.info("Reading files serially")
    return [load_function(files, **kwargs)
            for files in feature_files]