code: def test_delete_model_without_deploy(sagemaker_session):
      pipeline_model = PipelineModel(
          [], role=ROLE, sagemaker_session=sagemaker_session
      )
  
      expected_error_message = "The SageMaker model must be created before attempting to delete."
      with pytest.raises(ValueError, match=expected_error_message):
          pipeline_model.delete_model()
  
imports: from __future__ import absolute_import
  import copy
  import pytest
  from botocore.utils import merge_dicts
  from mock import Mock, patch
  from mock.mock import ANY
  from sagemaker.model import FrameworkModel
  from sagemaker.pipeline import PipelineModel
  from sagemaker.predictor import Predictor
  from sagemaker.session_settings import SessionSettings
  from sagemaker.sparkml import SparkMLModel
  from tests.unit import SAGEMAKER_CONFIG_MODEL, SAGEMAKER_CONFIG_ENDPOINT_CONFIG
label_desc: Use image node_id 10 for calling a global function with example usage: test_delete_model_without_deploy(sagemaker_session) without return types