def METHOD_NAME(x):
    if isinstance(x, tuple):
        return {
            "class_name": "__tuple__",
            "items": tuple(METHOD_NAME(i) for i in x),
        }
    elif isinstance(x, list):
        return [METHOD_NAME(i) for i in x]
    elif isinstance(x, dict):
        return {key: METHOD_NAME(value) for key, value in x.items()}
    else:
        return x