code: def test_search(sagemaker_session):
      trial_component_names_searched = []
      search_filter = Filter(
          name="TrialComponentName",
          operator=Operator.CONTAINS,
          value=EXP_INTEG_TEST_NAME_PREFIX,
      )
      search_expression = SearchExpression(filters=[search_filter])
      for s in trial_component._TrialComponent.search(
          search_expression=search_expression,
          max_results=10,
          sagemaker_session=sagemaker_session,
      ):
          trial_component_names_searched.append(s.trial_component_name)
  
      assert len(trial_component_names_searched) > 0
      assert trial_component_names_searched
  
file_path: sagemaker-python-sdk/tests/integ/sagemaker/experiments/test_trial_component.py
imports: from __future__ import absolute_import
  import datetime
  import uuid
  from sagemaker.experiments._api_types import _TrialComponentStatusType
  from tests.integ.sagemaker.experiments.helpers import EXP_INTEG_TEST_NAME_PREFIX
  from sagemaker.experiments import _api_types, trial_component
  from sagemaker.utilities.search_expression import Filter, Operator, SearchExpression
label_desc: Use image node_id 7 for calling a global function with example usage: test_search(sagemaker_session) without return types