def METHOD_NAME(credential_arg):
    if not credential_arg:
        return {}
    return {
        region: (endpoint, arn, external_id)
        for region, endpoint, arn, external_id in [
            tuple(credential_tuple.strip().split(","))
            for credential_tuple in credential_arg
            if credential_tuple.strip()
        ]
    }