code: def test_profiler_config_with_default_framework_profile(
      default_framework_profile,
  ):
      profiler_config = ProfilerConfig(
          framework_profile_params=default_framework_profile
      )
      request_dict = profiler_config._to_request_dict()
      profiling_parameters = request_dict["ProfilingParameters"]
  
      _validate_profiling_parameter_conditions(profiling_parameters)
      assert profiling_parameters["LocalPath"] == BASE_FOLDER_DEFAULT
      assert (
          int(profiling_parameters["RotateMaxFileSizeInBytes"])
          == MAX_FILE_SIZE_DEFAULT
      )
      assert (
          float(
              profiling_parameters["RotateFileCloseIntervalInSeconds"]
          )
          == CLOSE_FILE_INTERVAL_DEFAULT
      )
      assert (
          int(profiling_parameters["FileOpenFailThreshold"])
          == FILE_OPEN_FAIL_THRESHOLD_DEFAULT
      )
  
      detailed_profiling_config = eval(
          profiling_parameters[DETAILED_PROFILING_CONFIG_NAME]
      )
      assert detailed_profiling_config == {
          "StartStep": DETAILED_PROFILING_START_STEP_DEFAULT,
          "NumSteps": PROFILING_NUM_STEPS_DEFAULT,
      }
  
      dataloader_profiling_config = eval(
          profiling_parameters[DATALOADER_PROFILING_CONFIG_NAME]
      )
      assert dataloader_profiling_config == {
          "StartStep": DATALOADER_PROFILING_START_STEP_DEFAULT,
          "NumSteps": PROFILING_NUM_STEPS_DEFAULT,
          "MetricsRegex": ".*",
      }
  
      python_profiling_config = eval(
          profiling_parameters[PYTHON_PROFILING_CONFIG_NAME]
      )
      assert python_profiling_config == {
          "StartStep": PYTHON_PROFILING_START_STEP_DEFAULT,
          "NumSteps": PYTHON_PROFILING_NUM_STEPS_DEFAULT,
          "ProfilerName": PythonProfiler.CPROFILE.value,
          "cProfileTimer": cProfileTimer.DEFAULT.value,
      }
  
      horovod_profiling_config = eval(
          profiling_parameters[HOROVOD_PROFILING_CONFIG_NAME]
      )
      assert horovod_profiling_config == {
          "StartStep": HOROVOD_PROFILING_START_STEP_DEFAULT,
          "NumSteps": PROFILING_NUM_STEPS_DEFAULT,
      }
  
      smdataparallel_profiling_config = eval(
          profiling_parameters[SMDATAPARALLEL_PROFILING_CONFIG_NAME]
      )
      assert smdataparallel_profiling_config == {
          "StartStep": SMDATAPARALLEL_PROFILING_START_STEP_DEFAULT,
          "NumSteps": PROFILING_NUM_STEPS_DEFAULT,
      }
  
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 27 for calling a global function with example usage: test_profiler_config_with_default_framework_profile(default_framework_profile) without return types