code: def test_trained_models(
      dataset_artifact_associated_models,
      trial_component_obj,
      model_artifact_obj1,
  ):
      model_list = dataset_artifact_associated_models.trained_models()
      for model in model_list:
          assert (
              model.source_arn
              == trial_component_obj.trial_component_arn
          )
          assert (
              model.destination_arn == model_artifact_obj1.artifact_arn
          )
          assert model.destination_type == "Context"
  
imports: from __future__ import absolute_import
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_trained_models(dataset_artifact_associated_models, trial_component_obj, model_artifact_obj1) without return types