<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_saml_provider(name, region=None, key=None, keyid=None, profile=None):
    '''
    Get SAML provider document.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_iam.get_saml_provider arn
    '''
    conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
    try:
        provider = conn.get_saml_provider(name)
        return provider['get_saml_provider_response']['get_saml_provider_result']['saml_metadata_document']
    except boto.exception.BotoServerError as e:
        log.debug(__utils__['boto.get_error'](e))
        log.error('Failed to get SAML provider document %s.', name)
        return False