code: def test_sub_expression(sagemaker_session):
      tc_names_searched = []
      search_filter = Filter(
          name="TrialComponentName",
          operator=Operator.CONTAINS,
          value=EXP_INTEG_TEST_NAME_PREFIX,
      )
      sub_expression = SearchExpression(filters=[search_filter])
      search_expression = SearchExpression(
          sub_expressions=[sub_expression]
      )
      for tc in _TrialComponent.search(
          search_expression=search_expression,
          max_results=10,
          sagemaker_session=sagemaker_session,
      ):
          tc_names_searched.append(tc.trial_component_name)
  
      assert len(tc_names_searched) > 0
      assert tc_names_searched
  
imports: from __future__ import absolute_import
  import pytest
  from tests.integ.sagemaker.experiments.helpers import EXP_INTEG_TEST_NAME_PREFIX
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.utilities.search_expression import Filter, Operator, SearchExpression, NestedFilter
label_desc: Use image node_id 3 for calling a global function with example usage: test_sub_expression(sagemaker_session) without return types