def METHOD_NAME(x: Any) -> Union[Dict, List, str]:
    """
    Represent TR069 payloads as python dictionaries. Used mostly for debug
    Args:
        x (Any): element to represent as dict
    Returns:
        Union[Dict, List, str]
    """
    if hasattr(x, 'as_dict'):
        return {k: METHOD_NAME(v) for k, v in x.METHOD_NAME().items()}
    elif isinstance(x, list):
        return [METHOD_NAME(v) for v in x]
    return str(x)