code: def test_trial_components(
      sagemaker_session,
      static_transform_job_trial_component,
      static_endpoint_context,
  ):
      trial_components_from_query = (
          static_endpoint_context.trial_components()
      )
  
      assert len(trial_components_from_query) > 0
      for trial_component in trial_components_from_query:
          assert "job" in trial_component.trial_component_arn
          assert "Job" in trial_component.source.get("SourceType")
  
file_path: sagemaker-python-sdk/tests/integ/sagemaker/lineage/test_endpoint_context.py
imports: from __future__ import absolute_import
  import time
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_trial_components(sagemaker_session, static_transform_job_trial_component, static_endpoint_context) without return types