code: def test_trained_models(sagemaker_session):
      model_artifact_obj = artifact.ModelArtifact(
          sagemaker_session, artifact_arn="model-artifact-arn"
      )
  
      sagemaker_session.sagemaker_client.list_associations.side_effect = [
          {
              "AssociationSummaries": [
                  {
                      "SourceArn": model_artifact_obj.artifact_arn,
                      "SourceName": "X1",
                      "DestinationArn": "action-arn",
                      "DestinationName": "Y1",
                      "SourceType": "C1",
                      "DestinationType": "Action",
                      "AssociationType": "E1",
                      "CreationTime": None,
                      "CreatedBy": None,
                  }
              ],
          },
          {
              "AssociationSummaries": [
                  {
                      "SourceArn": "action-arn",
                      "SourceName": "X2",
                      "DestinationArn": "endpoint-context-arn",
                      "DestinationName": "Y2",
                      "SourceType": "Action",
                      "DestinationType": "Context",
                      "AssociationType": "E2",
                      "CreationTime": None,
                      "CreatedBy": None,
                  }
              ]
          },
      ]
  
      endpoint_context_list = model_artifact_obj.endpoints()
      expected_calls = [
          unittest.mock.call(
              SourceArn=model_artifact_obj.artifact_arn,
              DestinationType="Action",
          ),
          unittest.mock.call(
              SourceArn="action-arn", DestinationType="Context"
          ),
      ]
      assert (
          expected_calls
          == sagemaker_session.sagemaker_client.list_associations.mock_calls
      )
      expected_model_list = [
          _api_types.AssociationSummary(
              source_arn="action-arn",
              source_name="X2",
              destination_arn="endpoint-context-arn",
              destination_name="Y2",
              source_type="Action",
              destination_type="Context",
              association_type="E2",
              creation_time=None,
              created_by=None,
          )
      ]
      assert expected_model_list == endpoint_context_list
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_trained_models(sagemaker_session) without return types