<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def gendict(cls, *args, **kwargs):
        '''
        Pre-translated key dictionary constructor.

        See :type:`dict` for more info.

        :returns: dictionary with uppercase keys
        :rtype: dict
        '''
        gk = cls.genkey
        return dict((gk(k), v) for k, v in dict(*args, **kwargs).items())