class_docstr: Configuration for the range of steps to profile.
  
  It returns the target steps in dictionary format that you can pass to the
  :class:`~sagemaker.debugger.FrameworkProfile` class.
docstr: Set the start step and num steps.
  
  If the start step is not specified,
  Debugger starts profiling
  at step 0. If num steps is not specified, profile for 1 step.
  
  Args:
      start_step (int): The step to start profiling.
      num_steps (int): The number of steps to profile.
docstr_tok: ["Set","the","start","step","and","num","steps",".","If","the","start","step","is","not","specified",",","Debugger","starts","profiling","at","step","0",".","If","num","steps","is","not","specified",",","profile","for","1","step",".","Args",":","start_step","(","int",")",":","The","step","to","start","profiling",".","num_steps","(","int",")",":","The","number","of","steps","to","profile","."]
code: def __init__(self, start_step, num_steps):
      """Set the start step and num steps.
  
      If the start step is not specified,
      Debugger starts profiling
      at step 0. If num steps is not specified, profile for 1 step.
  
      Args:
          start_step (int): The step to start profiling.
          num_steps (int): The number of steps to profile.
  
      """
      if start_step is None:
          start_step = START_STEP_DEFAULT
      elif num_steps is None:
          num_steps = PROFILING_NUM_STEPS_DEFAULT
  
      self.start_step = start_step
      self.num_steps = num_steps
  
imports: from __future__ import absolute_import
  from sagemaker.debugger.profiler_constants import 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
  from sagemaker.debugger.utils import convert_json_config_to_string, cProfileTimer, is_valid_regex, is_valid_unix_time, ErrorMessages, PythonProfiler
label_desc: Use image node_id 1 to create a new StepRange object  with example: obj = StepRange(start_step, num_steps)