def METHOD_NAME(obj: Any) -> Any:
    if isinstance(obj, List):
        return [METHOD_NAME(x) for x in obj]
    elif isinstance(obj, Set):
        return {METHOD_NAME(x) for x in obj}
    elif isinstance(obj, Dict):
        return {k: METHOD_NAME(v) for k, v in obj.items()}
    elif isinstance(obj, Decimal):
        return num if (num := int(obj)) == obj else float(obj)
    else:
        return obj