def METHOD_NAME(namespaces):
    canonicalized_namespaces = []
    for namespace_info in namespaces:
        if ob.is_namespace_deleted(namespace_info):
            continue
        ob.aggregate_shared_resources(namespace_info, "openshiftServiceAccountTokens")
        openshift_serviceaccount_tokens = namespace_info.get(
            "openshiftServiceAccountTokens"
        )
        if openshift_serviceaccount_tokens:
            canonicalized_namespaces.append(namespace_info)
            for sat in openshift_serviceaccount_tokens:
                canonicalized_namespaces.append(sat["namespace"])
    return canonicalized_namespaces