def camel_case_to_underscore(name):
    """Converts camel_case into CamelCase"""
    res = RE_TOKEN1.sub(r'\1_\2', name)
    res = RE_TOKEN2.sub(r'\1_\2', res)
    return res.lower()
def camel_case_to_underscore ( name ) : res = RE_TOKEN1 . sub ( r'\1_\2' , name ) res = RE_TOKEN2 . sub ( r'\1_\2' , res ) return res . lower ( )
Converts camel_case into CamelCase