def METHOD_NAME(string: str) -> str:
    """Translates amazon Camelcase strings to
    lowercase underscored strings"""
    res = []
    for index, char in enumerate(string):
        if index != 0 and char.isupper():
            res.extend(["_", char.lower()])
        else:
            res.extend([char.lower()])
    return "".join(res)