code: def test_predictor_type(sagemaker_session):
      sparkml = SparkMLModel(
          sagemaker_session=sagemaker_session,
          model_data=MODEL_DATA,
          role=ROLE,
      )
      predictor = sparkml.deploy(1, TRAIN_INSTANCE_TYPE)
  
      assert isinstance(predictor, SparkMLPredictor)
  
file_path: sagemaker-python-sdk/tests/unit/test_sparkml_serving.py
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock
  from sagemaker import image_uris
  from sagemaker.session_settings import SessionSettings
  from sagemaker.sparkml import SparkMLModel, SparkMLPredictor
label_desc: Use image node_id 3 for calling a global function with example usage: test_predictor_type(sagemaker_session) without return types