code: def test_action(static_endpoint_context, sagemaker_session):
      actions_from_query = static_endpoint_context.actions(
          direction=LineageQueryDirectionEnum.ASCENDANTS
      )
  
      assert len(actions_from_query) > 0
      for action in actions_from_query:
          assert "action" in action.action_arn
  
file_path: sagemaker-python-sdk/tests/integ/sagemaker/lineage/test_context.py
imports: from __future__ import absolute_import
  import datetime
  import logging
  import time
  import pytest
  from sagemaker.lineage import context
  from sagemaker.lineage.query import LineageQueryDirectionEnum
label_desc: Use image node_id 3 for calling a global function with example usage: test_action(static_endpoint_context, sagemaker_session) without return types