code: def test_right_size_advanced_single_instances_model_package_successful(
      sagemaker_session, model_package
  ):
      model_package.right_size(
          job_name=IR_JOB_NAME,
          sample_payload_url=IR_SAMPLE_PAYLOAD_URL,
          supported_content_types=IR_SUPPORTED_CONTENT_TYPES,
          framework="SAGEMAKER-SCIKIT-LEARN",
          job_duration_in_seconds=7200,
          hyperparameter_ranges=IR_SAMPLE_SINGLE_INSTANCES_HYPERPARAMETER_RANGES,
          phases=IR_SAMPLE_PHASES,
          traffic_type="PHASES",
          max_invocations=100,
          model_latency_thresholds=IR_SAMPLE_MODEL_LATENCY_THRESHOLDS,
          max_tests=5,
          max_parallel_tests=5,
      )
  
      sagemaker_session.create_model.assert_not_called()
  
      # assert that the create api has been called with advanced parameters
      sagemaker_session.create_inference_recommendations_job.assert_called_with(
          role=IR_ROLE_ARN,
          job_name=IR_JOB_NAME,
          job_type="Advanced",
          job_duration_in_seconds=7200,
          model_name=None,
          model_package_version_arn=model_package.model_package_arn,
          framework=IR_SAMPLE_FRAMEWORK,
          framework_version=None,
          sample_payload_url=IR_SAMPLE_PAYLOAD_URL,
          supported_content_types=IR_SUPPORTED_CONTENT_TYPES,
          supported_instance_types=None,
          endpoint_configurations=IR_SAMPLE_ENDPOINT_CONFIG,
          traffic_pattern=IR_SAMPLE_TRAFFIC_PATTERN,
          stopping_conditions=IR_SAMPLE_STOPPING_CONDITIONS,
          resource_limit=IR_SAMPLE_RESOURCE_LIMIT,
      )
  
imports: from __future__ import absolute_import
  from unittest.mock import patch, MagicMock, ANY
  from sagemaker.model import Model, ModelPackage
  from sagemaker.parameter import CategoricalParameter
  from sagemaker.inference_recommender.inference_recommender_mixin import Phase, ModelLatencyThreshold
  from sagemaker.async_inference import AsyncInferenceConfig
  from sagemaker.serverless import ServerlessInferenceConfig
  from sagemaker.explainer import ExplainerConfig
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_right_size_advanced_single_instances_model_package_successful(sagemaker_session, model_package) without return types