code: def _check_framework_profile_deprecation_warning(
      framework_version, framework_name, warn_list
  ):
      """Check the collected warnings for a framework fromfile DeprecationWarning"""
  
      thresh = (
          version.parse("2.12")
          if framework_name == "tensorflow"
          else version.parse("2.0")
      )
      actual = version.parse(framework_version)
  
      if actual >= thresh:
          # should find a Framework profiling deprecation warning
          for w in warn_list:
              if issubclass(w.category, DeprecationWarning):
                  if "Framework profiling" in str(w.message):
                      return
          assert 0
  
imports: from __future__ import absolute_import
  import os
  import pytest
  import re
  import time
  import warnings
  from packaging import version
  from sagemaker import image_uris
  import sagemaker.fw_utils
  from sagemaker.pytorch import PyTorch
  from sagemaker.tensorflow import TensorFlow
  from sagemaker.debugger import get_rule_container_image_uri
  from sagemaker.debugger.profiler_config import FrameworkProfile
  from sagemaker import ProfilerConfig, Profiler
  from sagemaker.debugger.metrics_config import StepRange, TimeRange, DetailedProfilingConfig, DataloaderProfilingConfig, PythonProfilingConfig, HorovodProfilingConfig, SMDataParallelProfilingConfig
  from sagemaker.debugger.profiler_constants import BASE_FOLDER_DEFAULT, CLOSE_FILE_INTERVAL_DEFAULT, FILE_OPEN_FAIL_THRESHOLD_DEFAULT, MAX_FILE_SIZE_DEFAULT, DATALOADER_PROFILING_CONFIG_NAME, DATALOADER_PROFILING_START_STEP_DEFAULT, DETAILED_PROFILING_CONFIG_NAME, DETAILED_PROFILING_START_STEP_DEFAULT, SMDATAPARALLEL_PROFILING_CONFIG_NAME, SMDATAPARALLEL_PROFILING_START_STEP_DEFAULT, HOROVOD_PROFILING_CONFIG_NAME, HOROVOD_PROFILING_START_STEP_DEFAULT, PROFILING_NUM_STEPS_DEFAULT, PYTHON_PROFILING_CONFIG_NAME, PYTHON_PROFILING_NUM_STEPS_DEFAULT, PYTHON_PROFILING_START_STEP_DEFAULT, START_STEP_DEFAULT, DETAIL_PROF_PROCESSING_DEFAULT_INSTANCE_TYPE, DETAIL_PROF_PROCESSING_DEFAULT_VOLUME_SIZE
  from sagemaker.debugger.utils import PythonProfiler, cProfileTimer, ErrorMessages
label_desc: Use image node_id 45 for calling a global function with example usage: _check_framework_profile_deprecation_warning(framework_version, framework_name, warn_list) without return types