code: def test_endpoint_context_success():
      session = context_sagemaker_session()
      pdctr = Predictor(ENDPOINT, sagemaker_session=session)
  
      context = pdctr.endpoint_context()
  
      assert context
  
imports: from __future__ import absolute_import
  import io
  import json
  import pytest
  from mock import Mock, call, patch
  from sagemaker.deserializers import CSVDeserializer, PandasDeserializer
  from sagemaker.enums import EndpointType
  from sagemaker.model_monitor.model_monitoring import DEFAULT_REPOSITORY_NAME
  from sagemaker.predictor import Predictor
  from sagemaker.serializers import JSONSerializer, CSVSerializer
  from sagemaker.compute_resource_requirements.resource_requirements import ResourceRequirements
label_desc: Use image node_id 21 for calling a global function with example usage: test_endpoint_context_success() without return types