code: def test_processing_jobs(sagemaker_session):
      context_arn = "arn:aws:sagemaker:us-west-2:123456789012:context/lineage-unit-3b05f017-0d87-4c37"
      processing_job_arn = "arn:aws:sagemaker:us-west-2:123456789012:trial_component/lineage-unit-3b05f017-0d87-4c37"
      obj = context.EndpointContext(
          sagemaker_session, context_name="foo", context_arn=context_arn
      )
  
      sagemaker_session.sagemaker_client.query_lineage.return_value = {
          "Vertices": [
              {
                  "Arn": processing_job_arn,
                  "Type": "ProcessingJob",
                  "LineageType": "TrialComponent",
              },
          ],
          "Edges": [
              {
                  "SourceArn": "arn1",
                  "DestinationArn": "arn2",
                  "AssociationType": "Produced",
              }
          ],
      }
      sagemaker_session.sagemaker_client.describe_trial_component.return_value = {
          "TrialComponentName": "MyProcessingJob",
          "TrialComponentArn": processing_job_arn,
      }
  
      trial_component_list = obj.processing_jobs(
          direction=LineageQueryDirectionEnum.ASCENDANTS
      )
      expected_calls = [
          unittest.mock.call(
              Direction="Ascendants",
              Filters={
                  "Types": ["ProcessingJob"],
                  "LineageTypes": ["TrialComponent"],
              },
              IncludeEdges=False,
              MaxDepth=10,
              StartArns=[context_arn],
          ),
      ]
      assert (
          expected_calls
          == sagemaker_session.sagemaker_client.query_lineage.mock_calls
      )
      expected_trial_component_list = [
          LineageTrialComponent(
              trial_component_name="MyProcessingJob",
              trial_component_arn=processing_job_arn,
          )
      ]
  
      assert (
          expected_trial_component_list[0].trial_component_arn
          == trial_component_list[0].trial_component_arn
      )
      assert (
          expected_trial_component_list[0].trial_component_name
          == trial_component_list[0].trial_component_name
      )
  
imports: from __future__ import absolute_import
  import datetime
  import unittest.mock
  import pytest
  from sagemaker.lineage import context, _api_types
  from sagemaker.lineage.action import Action
  from sagemaker.lineage.lineage_trial_component import LineageTrialComponent
  from sagemaker.lineage.query import LineageQueryDirectionEnum
label_desc: Use image node_id 14 for calling a global function with example usage: test_processing_jobs(sagemaker_session) without return types