def METHOD_NAME(obj):
    t = type(obj)
    if t is dict:
        # Do not modify objects in place
        obj = obj.copy()
        for k, v in obj.items():
            obj[k] = METHOD_NAME(v)
    elif t is tuple:
        return tuple(METHOD_NAME(v) for v in obj)
    elif t is set:
        # Can't put arrays in sets
        return obj