def METHOD_NAME(obj):
    if isinstance(obj, dict):
        res = dict()
        for key, value in obj.items():
            assert_is_valid_key(key)
            res[key] = METHOD_NAME(value)
        return res
    elif isinstance(obj, (list, tuple)):
        return list([METHOD_NAME(value) for value in obj])
    return normalize_numpy(obj)