from collections import namedtuple


def convert_to_namedtuple(dictionary, name='GenericNamedTuple'):
    """Converts a dictionary to a named tuple."""
    return namedtuple(name, list(dictionary.keys()))(**dictionary)