code: def model(sagemaker_session):
      return Model(
          MODEL_IMAGE,
          MODEL_DATA,
          role=IR_ROLE_ARN,
          sagemaker_session=sagemaker_session,
      )
  
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 3 for calling a global function with example usage: model(sagemaker_session) and returns: Model