code: def test_custom_python_profiling_config_2(
      custom_python_profiling_config_2,
      custom_start_unix_time,
      custom_duration,
      custom_cprofile_timer,
  ):
      assert isinstance(
          custom_python_profiling_config_2.range, TimeRange
      )
      assert (
          custom_python_profiling_config_2.range.start_unix_time
          == custom_start_unix_time
      )
      assert (
          custom_python_profiling_config_2.range.duration
          == custom_duration
      )
      assert (
          custom_python_profiling_config_2.python_profiler
          == PythonProfiler.CPROFILE
      )
      assert (
          custom_python_profiling_config_2.cprofile_timer
          == custom_cprofile_timer
      )
  
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 38 for calling a global function with example usage: test_custom_python_profiling_config_2(custom_python_profiling_config_2, custom_start_unix_time, custom_duration, custom_cprofile_timer) without return types