code: def assert_invoked(sagemaker_session, **kwargs):
      sagemaker_session.sagemaker_runtime_client.invoke_endpoint.assert_called_once_with(
          **kwargs
      )
  
imports: from __future__ import absolute_import
  import io
  import json
  import logging
  import mock
  import pytest
  from mock import Mock, patch, ANY
  from sagemaker.serializers import CSVSerializer, IdentitySerializer
  from sagemaker.tensorflow import TensorFlow, TensorFlowModel, TensorFlowPredictor
label_desc: Use image node_id 21 for calling a global function with example usage: assert_invoked(sagemaker_session) without return types