def METHOD_NAME(names: List[str], cfg: UAConfig):
    """Return a list of valid entitlement names.
    :param names: List of entitlements to validate
    :return: a tuple of List containing the valid and invalid entitlements
    """
    entitlements_found = []
    for ent_name in names:
        if ent_name in valid_services(
            cfg=cfg, allow_beta=True, all_names=True
        ):
            entitlements_found.append(ent_name)
    entitlements_not_found = sorted(set(names) - set(entitlements_found))
    return entitlements_found, entitlements_not_found