code: def test_missing_required_parameters(sagemaker_session):
      with pytest.raises(AttributeError) as e:
          RLEstimator(
              entry_point=SCRIPT_PATH,
              role=ROLE,
              sagemaker_session=sagemaker_session,
              instance_count=INSTANCE_COUNT,
              instance_type=INSTANCE_TYPE,
          )
      assert (
          "Please provide `toolkit`, `toolkit_version`, `framework`"
          + " or `image_uri` parameter."
          in str(e.value)
      )
  
imports: from __future__ import absolute_import
  import json
  import logging
  import os
  import pytest
  from mock import MagicMock, Mock, patch
  from sagemaker.mxnet import MXNetModel, MXNetPredictor
  from sagemaker.rl import RLEstimator, RLFramework, RLToolkit, TOOLKIT_FRAMEWORK_VERSION_MAP
  from sagemaker.session_settings import SessionSettings
  from sagemaker.tensorflow import TensorFlowModel, TensorFlowPredictor
label_desc: Use image node_id 19 for calling a global function with example usage: test_missing_required_parameters(sagemaker_session) without return types