code: def test_trial_component_is_associated_to_trial(sagemaker_session):
      obj = _TrialComponent(
          sagemaker_session, trial_component_name="tc-1"
      )
      sagemaker_session.sagemaker_client.search.return_value = {
          "Results": [
              {
                  "TrialComponent": {
                      "Parents": [
                          {"ExperimentName": "e-1", "TrialName": "t-1"}
                      ],
                      "TrialComponentName": "tc-1",
                  }
              }
          ]
      }
  
      assert (
          obj._trial_component_is_associated_to_trial(
              "tc-1", "t-1", sagemaker_session
          )
          is True
      )
  
imports: from __future__ import absolute_import
  import datetime
  import unittest.mock
  from unittest.mock import patch
  import botocore
  from sagemaker import Session
  from sagemaker.experiments import _api_types
  from sagemaker.experiments._api_types import TrialComponentSearchResult, Parent, _TrialComponentStatusType
  from sagemaker.experiments.trial_component import _TrialComponent
label_desc: Use image node_id 13 for calling a global function with example usage: test_trial_component_is_associated_to_trial(sagemaker_session) without return types