def get_identity_provider(provider_id):
try:<EOL><INDENT>from third_party_auth.provider import Registry   <EOL><DEDENT>except ImportError as exception:<EOL><INDENT>LOGGER.warning("<STR_LIT>")<EOL>LOGGER.warning(exception)<EOL>Registry = None  <EOL><DEDENT>try:<EOL><INDENT>return Registry and Registry.get(provider_id)<EOL><DEDENT>except ValueError:<EOL><INDENT>return None<EOL><DEDENT>
Get Identity Provider with given id.

Return:
    Instance of ProviderConfig or None.