def get_profile_class(name):
if name not in CLASS_CACHE:<EOL><INDENT>profile_data = PROFILES[name]<EOL>profile_name = clean(name)<EOL>class_name = '<STR_LIT>'.format(<EOL>profile_name[<NUM_LIT:0>].upper(), profile_name[<NUM_LIT:1>:])<EOL>new_class = type(class_name, (BaseProfile,), {'<STR_LIT>': profile_data})<EOL>CLASS_CACHE[name] = new_class<EOL><DEDENT>return CLASS_CACHE[name]<EOL>
For the given profile name, load the data from the external
    database, then generate dynamically a class.