def get_profile(name=None, **kwargs):
if isinstance(name, Profile):<EOL><INDENT>return name<EOL><DEDENT>clazz = get_profile_class(name or '<STR_LIT:default>')<EOL>return clazz(**kwargs)<EOL>
Get the profile by name; if no name is given, return the
    default profile.