def METHOD_NAME(
    datadog_secrets, datadog_identity_email, datadog_identity_phone_number
):
    """
    Checks if logs exist for the identities, logs are created if they
    don't exist and we poll until the logs are present in the events endpoint
    """
    if not _logs_exist(datadog_identity_email, datadog_secrets):
        _create_logs_for_identity(datadog_identity_email, datadog_secrets)
    if not _logs_exist(datadog_identity_phone_number, datadog_secrets):
        _create_logs_for_identity(datadog_identity_phone_number, datadog_secrets)