parameters: (self, timestamp)
return_statement: return step_num
docstring: Calculate the step according to the timestamp.
docstring_summary: Calculate the step according to the timestamp.
docstring_tokens: Calculate the step according to the timestamp .
function: def _calculate_the_step_by_timestamp(self, timestamp):
          """Calculate the step according to the timestamp."""
          # index0:communication_operator_name, index1:step_timestamps_info
          step_timestamps_info = self._step_trace_info[1]
          step_timestamps_len = len(step_timestamps_info)
          # index_0:step_num, index_1:start_point, index_2:end_point
          if timestamp < step_timestamps_info[0][1]:
              step_num = "1"
          elif step_timestamps_info[step_timestamps_len - 1][2] < timestamp:
              step_num = step_timestamps_info[step_timestamps_len - 1][0]
          else:
              for item in step_timestamps_info:
                  if item[1] <= timestamp < item[2]:
                      step_num = item[0]
          return step_num
function_tokens: def _calculate_the_step_by_timestamp ( self , timestamp ) : # index0:communication_operator_name, index1:step_timestamps_info step_timestamps_info = self . _step_trace_info [ 1 ] step_timestamps_len = len ( step_timestamps_info ) # index_0:step_num, index_1:start_point, index_2:end_point if timestamp < step_timestamps_info [ 0 ] [ 1 ] : step_num = "1" elif step_timestamps_info [ step_timestamps_len - 1 ] [ 2 ] < timestamp : step_num = step_timestamps_info [ step_timestamps_len - 1 ] [ 0 ] else : for item in step_timestamps_info : if item [ 1 ] <= timestamp < item [ 2 ] : step_num = item [ 0 ] return step_num