class_docstr: An Amazon SageMaker, lineage trial component, which is part of a SageMaker lineage.
  
  A trial component is a stage in a trial.
  Trial components are created automatically within the SageMaker runtime and also can be
  created directly. To automatically associate trial components with a trial and experiment
  supply an experiment config when creating a job.
  For example: https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html
  
  Attributes:
      trial_component_name (str): The name of the trial component. Generated by SageMaker from the
          name of the source job with a suffix specific to the type of source job.
          trial_component_arn (str): The ARN of the trial component.
      display_name (str): The name of the trial component that will appear in UI,
          such as SageMaker Studio.
      source (obj): A TrialComponentSource object with a source_arn attribute.
      status (str): Status of the source job.
      start_time (datetime): When the source job started.
      end_time (datetime): When the source job ended.
      creation_time (datetime): When the source job was created.
      created_by (obj): Contextual info on which account created the trial component.
      last_modified_time (datetime): When the trial component was last modified.
      last_modified_by (obj): Contextual info on which account last modified the trial component.
      parameters (dict): Dictionary of parameters to the source job.
      input_artifacts (dict): Dictionary of input artifacts.
      output_artifacts (dict): Dictionary of output artifacts.
      metrics (obj): Aggregated metrics for the job.
      parameters_to_remove (list): The hyperparameters to remove from the component.
      input_artifacts_to_remove (list): The input artifacts to remove from the component.
      output_artifacts_to_remove (list): The output artifacts to remove from the component.
      tags (List[dict[str, str]]): A list of tags to associate with the trial component.
class_docstr_tok: ["An","Amazon","SageMaker",",","lineage","trial","component",",","which","is","part","of","a","SageMaker","lineage",".","A","trial","component","is","a","stage","in","a","trial",".","Trial","components","are","created","automatically","within","the","SageMaker","runtime","and","also","can","be","created","directly",".","To","automatically","associate","trial","components","with","a","trial","and","experiment","supply","an","experiment","config","when","creating","a","job",".","For","example",":","https",":","\/\/docs.aws.amazon.com\/sagemaker\/latest\/dg\/API_CreateTrainingJob.html","Attributes",":","trial_component_name","(","str",")",":","The","name","of","the","trial","component",".","Generated","by","SageMaker","from","the","name","of","the","source","job","with","a","suffix","specific","to","the","type","of","source","job",".","trial_component_arn","(","str",")",":","The","ARN","of","the","trial","component",".","display_name","(","str",")",":","The","name","of","the","trial","component","that","will","appear","in","UI",",","such","as","SageMaker","Studio",".","source","(","obj",")",":","A","TrialComponentSource","object","with","a","source_arn","attribute",".","status","(","str",")",":","Status","of","the","source","job",".","start_time","(","datetime",")",":","When","the","source","job","started",".","end_time","(","datetime",")",":","When","the","source","job","ended",".","creation_time","(","datetime",")",":","When","the","source","job","was","created",".","created_by","(","obj",")",":","Contextual","info","on","which","account","created","the","trial","component",".","last_modified_time","(","datetime",")",":","When","the","trial","component","was","last","modified",".","last_modified_by","(","obj",")",":","Contextual","info","on","which","account","last","modified","the","trial","component",".","parameters","(","dict",")",":","Dictionary","of","parameters","to","the","source","job",".","input_artifacts","(","dict",")",":","Dictionary","of","input","artifacts",".","output_artifacts","(","dict",")",":","Dictionary","of","output","artifacts",".","metrics","(","obj",")",":","Aggregated","metrics","for","the","job",".","parameters_to_remove","(","list",")",":","The","hyperparameters","to","remove","from","the","component",".","input_artifacts_to_remove","(","list",")",":","The","input","artifacts","to","remove","from","the","component",".","output_artifacts_to_remove","(","list",")",":","The","output","artifacts","to","remove","from","the","component",".","tags","(","List","[","dict","[","str",",","str","]","]",")",":","A","list","of","tags","to","associate","with","the","trial","component","."]
docstr: Use the lineage query to retrieve datasets that use this trial component.
  
  Args:
      direction (LineageQueryDirectionEnum, optional): The query direction.
  
  Returns:
      list of Artifacts: Artifacts representing a dataset.
docstr_tok: ["Use","the","lineage","query","to","retrieve","datasets","that","use","this","trial","component",".","Args",":","direction","(","LineageQueryDirectionEnum",",","optional",")",":","The","query","direction",".","Returns",":","list","of","Artifacts",":","Artifacts","representing","a","dataset","."]
code: def dataset_artifacts(
      self,
      direction: LineageQueryDirectionEnum = LineageQueryDirectionEnum.ASCENDANTS,
  ) -> List[Artifact]:
      """Use the lineage query to retrieve datasets that use this trial component.
  
      Args:
          direction (LineageQueryDirectionEnum, optional): The query direction.
  
      Returns:
          list of Artifacts: Artifacts representing a dataset.
      """
      query_filter = LineageFilter(
          entities=[LineageEntityEnum.ARTIFACT],
          sources=[LineageSourceEnum.DATASET],
      )
      query_result = LineageQuery(self.sagemaker_session).query(
          start_arns=[self.trial_component_arn],
          query_filter=query_filter,
          direction=direction,
          include_edges=False,
      )
  
      return [
          vertex.to_lineage_object() for vertex in query_result.vertices
      ]
  
file_path: sagemaker-python-sdk/src/sagemaker/lineage/lineage_trial_component.py
imports: from __future__ import absolute_import
  import logging
  from typing import List
  from sagemaker.apiutils import _base_types
  from sagemaker.lineage.query import LineageQuery, LineageFilter, LineageSourceEnum, LineageEntityEnum, LineageQueryDirectionEnum
  from sagemaker.lineage.artifact import Artifact
label_desc: Use image node_id 3 for calling the LineageTrialComponent obj's underlying member method code with example usage: obj.dataset_artifacts(direction) and returns: unknown