from collections import namedtuple


def convert(dictionary):
    return namedtuple("GenericDict", dictionary.keys())(**dictionary)

from collections import namedtuple


def convert(dictionary):
    return namedtuple("GenericDict", dictionary.keys())(**dictionary)
