def METHOD_NAME(dxo: DXO, root_name: str = "") -> (dict, list):
    """Traverse the specified dxo tree and return all leaf DXOs.
    The input dxo is a simple DXO or a collection DXO as a dict of DXOs.
    Args:
        dxo: the DXO object to be traversed
        root_name: the root name of the DXO
    Returns: a dict of dxo_path => DXO object. The dxo path is the full path from the root to the leaf node,
    concatenation of all node names, separated by dots.
    A list of errors encountered during traversing.
    """
    result = {}
    errors = []
    _traverse(dxo, root_name, result, errors, {})
    return result, errors