code: def test_package_model(sagemaker_session):
      sagemaker_session.wait_for_edge_packaging_job = Mock(
          return_value=DESCRIBE_EDGE_PACKAGING_JOB_RESPONSE
      )
      model = _create_model(sagemaker_session)
      model.package_for_edge(
          output_path="s3://output",
          role="role",
          model_name="model_name",
          model_version="1.0",
      )
      assert model._is_edge_packaged_model is True
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock
  from sagemaker.model import Model
label_desc: Use image node_id 3 for calling a global function with example usage: test_package_model(sagemaker_session) without return types