code: def test_model(
      endpoint_context_associate_with_model,
      model_obj,
      endpoint_action_obj,
  ):
      model_list = endpoint_context_associate_with_model.models()
      for model in model_list:
          assert model.source_arn == endpoint_action_obj.action_arn
          assert model.destination_arn == model_obj.artifact_arn
          assert model.source_type == "ModelDeployment"
          assert model.destination_type == "Model"
  
file_path: sagemaker-python-sdk/tests/integ/sagemaker/lineage/test_endpoint_context.py
imports: from __future__ import absolute_import
  import time
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_model(endpoint_context_associate_with_model, model_obj, endpoint_action_obj) without return types