class_docstr: An execution of a data-science workflow with an experiment.
  
  Consists of a list of trial component objects, which document individual
  activities within the workflow.
  
  Attributes:
      trial_name (str): The name of the trial.
      experiment_name (str): The name of the trial's experiment.
      display_name (str): The name of the trial that will appear in UI,
          such as SageMaker Studio.
      tags (List[Dict[str, str]]): A list of tags to associate with the trial.
class_docstr_tok: ["An","execution","of","a","data-science","workflow","with","an","experiment",".","Consists","of","a","list","of","trial","component","objects",",","which","document","individual","activities","within","the","workflow",".","Attributes",":","trial_name","(","str",")",":","The","name","of","the","trial",".","experiment_name","(","str",")",":","The","name","of","the","trial","'s","experiment",".","display_name","(","str",")",":","The","name","of","the","trial","that","will","appear","in","UI",",","such","as","SageMaker","Studio",".","tags","(","List","[","Dict","[","str",",","str","]","]",")",":","A","list","of","tags","to","associate","with","the","trial","."]
docstr: Add the specified trial component to this trial.
  
  A trial component may belong to many trials and a trial may have many trial components.
  
  Args:
      trial_component (str or _TrialComponent): The trial component to add.
          Can be one of a _TrialComponent instance, or a string containing
          the name of the trial component to add.
docstr_tok: ["Add","the","specified","trial","component","to","this","trial",".","A","trial","component","may","belong","to","many","trials","and","a","trial","may","have","many","trial","components",".","Args",":","trial_component","(","str","or","_TrialComponent",")",":","The","trial","component","to","add",".","Can","be","one","of","a","_TrialComponent","instance",",","or","a","string","containing","the","name","of","the","trial","component","to","add","."]
code: def add_trial_component(self, trial_component):
      """Add the specified trial component to this trial.
  
      A trial component may belong to many trials and a trial may have many trial components.
  
      Args:
          trial_component (str or _TrialComponent): The trial component to add.
              Can be one of a _TrialComponent instance, or a string containing
              the name of the trial component to add.
      """
      if isinstance(trial_component, _TrialComponent):
          trial_component_name = trial_component.trial_component_name
      elif isinstance(trial_component, str):
          trial_component_name = trial_component
      else:
          raise TypeError(
              "Unsupported type of trail component {}. "
              "It has to be one type of _TrialComponent or str".format(
                  trial_component
              )
          )
      self.sagemaker_session.sagemaker_client.associate_trial_component(
          TrialName=self.trial_name,
          TrialComponentName=trial_component_name,
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/experiments/trial.py
imports: from __future__ import absolute_import
  from botocore.exceptions import ClientError
  from sagemaker.apiutils import _base_types
  from sagemaker.experiments import _api_types
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.utils import format_tags
label_desc: Use image node_id 7 for calling the _Trial obj's underlying member method code with example usage: obj.add_trial_component(trial_component) without return types