def METHOD_NAME(dictionary):
    if not isinstance(dictionary, dict):
        return
    for key in list(dictionary.keys()):
        METHOD_NAME(dictionary[key])
        value = dictionary.pop(key)
        dictionary[key.replace('-', '_')] = value