code: def test_endpoint_contexts(
      static_dataset_artifact,
  ):
      contexts_from_query = static_dataset_artifact.endpoint_contexts()
  
      assert len(contexts_from_query) > 0
      for context in contexts_from_query:
          assert context.context_type == "Endpoint"
  
imports: from __future__ import absolute_import
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_endpoint_contexts(static_dataset_artifact) without return types