code: def test_endpoints(
      model_artifact_associated_endpoints,
      endpoint_deployment_action_obj,
      endpoint_context_obj,
  ):
      model_list = model_artifact_associated_endpoints.endpoints()
      for model in model_list:
          assert (
              model.source_arn
              == endpoint_deployment_action_obj.action_arn
          )
          assert (
              model.destination_arn == endpoint_context_obj.context_arn
          )
          assert (
              model.source_type
              == endpoint_deployment_action_obj.action_type
          )
          assert (
              model.destination_type
              == endpoint_context_obj.context_type
          )
  
imports: from __future__ import absolute_import
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_endpoints(model_artifact_associated_endpoints, endpoint_deployment_action_obj, endpoint_context_obj) without return types