code: def test_transform_jobs(
      sagemaker_session,
      static_transform_job_trial_component,
      static_endpoint_context,
  ):
      sagemaker_session.sagemaker_client.add_association(
          SourceArn=static_transform_job_trial_component.trial_component_arn,
          DestinationArn=static_endpoint_context.context_arn,
          AssociationType="ContributedTo",
      )
      time.sleep(SLEEP_TIME_THREE_SECONDS)
      transform_jobs_from_query = (
          static_endpoint_context.transform_jobs()
      )
  
      assert len(transform_jobs_from_query) > 0
      for transform_job in transform_jobs_from_query:
          assert "transform-job" in transform_job.trial_component_arn
          assert "TransformJob" in transform_job.source.get(
              "SourceType"
          )
  
      sagemaker_session.sagemaker_client.delete_association(
          SourceArn=static_transform_job_trial_component.trial_component_arn,
          DestinationArn=static_endpoint_context.context_arn,
      )
  
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 6 for calling a global function with example usage: test_transform_jobs(sagemaker_session, static_transform_job_trial_component, static_endpoint_context) without return types