def METHOD_NAME(providers, provider_id):
    publisher_id = None
    offer_id = None
    for p in providers:
        if p.id.lower() == provider_id.lower():
            offer_id = p.properties.managed_application.offer_id
            publisher_id = p.properties.managed_application.publisher_id
            break
    return (publisher_id, offer_id)