code: def test_endpoints(static_approval_action):
      endpoint_contexts_from_query = static_approval_action.endpoints()
      assert len(endpoint_contexts_from_query) > 0
      for endpoint in endpoint_contexts_from_query:
          assert endpoint.context_type == "Endpoint"
          assert "endpoint" in endpoint.context_arn
  
file_path: sagemaker-python-sdk/tests/integ/sagemaker/lineage/test_action.py
imports: from __future__ import absolute_import
  import datetime
  import logging
  import time
  import pytest
  from sagemaker.lineage import action
  from sagemaker.lineage.query import LineageQueryDirectionEnum
label_desc: Use image node_id 11 for calling a global function with example usage: test_endpoints(static_approval_action) without return types