code: def test_add_upstream_feature_group_data_associations_when_non_validation_exception():
      with patch.object(
          Association, "create", side_effect=NON_VALIDATION_EXCEPTION
      ):
          with pytest.raises(ClientError):
              LineageAssociationHandler.add_upstream_feature_group_data_associations(
                  feature_group_inputs=FEATURE_GROUP_INPUT,
                  pipeline_context_arn="pipeline-context-arn",
                  pipeline_version_context_arn="pipeline-version-context-arn",
                  sagemaker_session=SAGEMAKER_SESSION_MOCK,
              )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/feature_store/feature_processor/lineage/test_lineage_association_handler.py
imports: from __future__ import absolute_import
  from mock import patch, call
  import pytest
  from sagemaker.feature_store.feature_processor.lineage._lineage_association_handler import LineageAssociationHandler
  from sagemaker.lineage.association import Association
  from botocore.exceptions import ClientError
  from test_constants import FEATURE_GROUP_INPUT, RAW_DATA_INPUT_ARTIFACTS, VALIDATION_EXCEPTION, NON_VALIDATION_EXCEPTION, SAGEMAKER_SESSION_MOCK, TRANSFORMATION_CODE_ARTIFACT_1
label_desc: Use image node_id 3 for calling a global function with example usage: test_add_upstream_feature_group_data_associations_when_non_validation_exception() without return types