def METHOD_NAME(m):
    if isinstance(m, list):
        return list(map(METHOD_NAME, m))
    elif hasattr(m, "_ad_to_list"):
        return m._ad_to_list(m)
    else:
        return m  # Assume it is gathered already