class_docstr: A SageMaker Lineage artifact representing a dataset.
  
  Encapsulates common dataset specific lineage traversals to discover how the dataset is
  connect to related entities.
class_docstr_tok: ["A","SageMaker","Lineage","artifact","representing","a","dataset",".","Encapsulates","common","dataset","specific","lineage","traversals","to","discover","how","the","dataset","is","connect","to","related","entities","."]
docstr: Given a dataset artifact, get associated trained models.
  
  Returns:
      list(Association): List of Contexts representing model artifacts.
docstr_tok: ["Given","a","dataset","artifact",",","get","associated","trained","models",".","Returns",":","list","(","Association",")",":","List","of","Contexts","representing","model","artifacts","."]
code: def trained_models(self) -> List[Association]:
      """Given a dataset artifact, get associated trained models.
  
      Returns:
          list(Association): List of Contexts representing model artifacts.
      """
      trial_components: Iterator = Association.list(
          source_arn=self.artifact_arn,
          sagemaker_session=self.sagemaker_session,
      )
      result: list = []
      for trial_component in trial_components:
          if (
              "experiment-trial-component"
              in trial_component.destination_arn
          ):
              models = Association.list(
                  source_arn=trial_component.destination_arn,
                  destination_type="Context",
                  sagemaker_session=self.sagemaker_session,
              )
              result.extend(models)
  
      return result
  
imports: from __future__ import absolute_import
  import logging
  import math
  from datetime import datetime
  from typing import Iterator, Union, Any, Optional, List
  from sagemaker.apiutils import _base_types, _utils
  from sagemaker.lineage import _api_types
  from sagemaker.lineage._api_types import ArtifactSource, ArtifactSummary
  from sagemaker.lineage.query import LineageQuery, LineageFilter, LineageSourceEnum, LineageEntityEnum, LineageQueryDirectionEnum
  from sagemaker.lineage._utils import _disassociate, get_resource_name_from_arn
  from sagemaker.lineage.association import Association
  from sagemaker.utils import get_module, format_tags
label_desc: Use image node_id 1 for calling the DatasetArtifact obj's underlying member method code with example usage: obj.trained_models() and returns: result