def METHOD_NAME(cls, data):
    if isinstance(data, dict):
        for key, value in data.items():
            if not isinstance(value, Box):
                data[key] = cls.METHOD_NAME(value)
        return Box(data)
    if isinstance(data, list):
        for idx, value in enumerate(data):
            data[idx] = cls.METHOD_NAME(value)
        return data
    return data