code: def cleanup_model_resources(
      sagemaker_session: Session, model_name: str, endpoint_name: str
  ):
      try:
          sagemaker_session.delete_model(model_name=model_name)
          sagemaker_session.delete_endpoint_config(
              endpoint_config_name=endpoint_name
          )
          sagemaker_session.delete_endpoint(endpoint_name=endpoint_name)
      except Exception:
          return
  
file_path: sagemaker-python-sdk/tests/integ/utils.py
imports: from __future__ import absolute_import
  import logging
  import shutil
  from functools import wraps
  from botocore.exceptions import ClientError
  from tests.conftest import NO_P3_REGIONS, NO_M4_REGIONS
  from sagemaker.exceptions import CapacityError
  from sagemaker.session import Session
label_desc: Use image node_id 5 for calling a global function with example usage: cleanup_model_resources(sagemaker_session, model_name, endpoint_name) without return types