<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_transcript_credentials_state_for_org(org, provider=None):
 """ Returns transcript credentials state for an org Arguments: org (unicode):
 course organization provider (unicode):
 transcript provider Returns: dict: provider name and their credential existance map { u'Cielo24': True } { u'3PlayMedia': False, u'Cielo24': True } """

    query_filter = {'org': org}
    if provider:
        query_filter['provider'] = provider

    return {
        credential.provider: credential.exists
        for credential in ThirdPartyTranscriptCredentialsState.objects.filter(**query_filter)
    }