code: def test_model_v2(
      endpoint_context_associate_with_model,
      model_obj,
      sagemaker_session,
  ):
      time.sleep(SLEEP_TIME_ONE_SECONDS)
      model_list = endpoint_context_associate_with_model.models_v2()
      assert len(model_list) == 1
      for model in model_list:
          assert model.artifact_arn == model_obj.artifact_arn
          assert model.artifact_name == model_obj.artifact_name
          assert model.artifact_type == "Model"
          assert model.properties == model_obj.properties
  
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 2 for calling a global function with example usage: test_model_v2(endpoint_context_associate_with_model, model_obj, sagemaker_session) without return types