def METHOD_NAME(arg):
    parts = arg.partition(':')
    template_obj = _default_templates[parts[0]]
    custom_name = None
    if parts[1] == ':':
        if parts[2]:
            custom_name = parts[2]
        else:
            raise Exception('Must specify custom name after colon')
    return (template_obj, custom_name)