original_docstring: 
      Just an example of driving policy for the oval truck: approx measure how long it takes to complete a lap
  
      :param kwargs will be a location event as dict produced by the 'build_location_event' function
      :return:
      
docstring: Just an example of driving policy for the oval truck: approx measure how long it takes to complete a lap
  :param kwargs will be a location event as dict produced by the 'build_location_event' function
  :return.
docstring_tokens: Just an example of driving policy for the oval truck : approx measure how long it takes to complete a lap : param kwargs will be a location event as dict produced by the ' build_location_event ' function : return .
code: def my_lap_driving_policy(self, **kwargs):
      """
      Just an example of driving policy for the oval truck: approx measure how long it takes to complete a lap
  
      :param kwargs will be a location event as dict produced by the 'build_location_event' function
      :return:
      """
      current_piece = kwargs['piece']
      if current_piece == 33:
          current_time = kwargs['notification_time']
          # time the lap and print it: if there is no last time, it means it's the first time
          if hasattr(self, 'last_starting_line_event'):
              time_lap = (current_time - self.last_starting_line_event).total_seconds()
              print('time lap in seconds was {}'.format(time_lap))
          # update lap time
          self.last_starting_line_event = current_time
  
      return
code_tokens: def my_lap_driving_policy ( self , ** kwargs ) : current_piece = kwargs [ 'piece' ] if current_piece == 33 : current_time = kwargs [ 'notification_time' ] if hasattr ( self , 'last_starting_line_event' ) : time_lap = ( current_time - self . last_starting_line_event ) . total_seconds ( ) print ( 'time lap in seconds was {}' . format ( time_lap ) ) self . last_starting_line_event = current_time return
short_docstring: Just an example of driving policy for the oval truck: approx measure how long it takes to complete a lap
  :param kwargs will be a location event as dict produced by the 'build_location_event' function
  :return:
short_docstring_tokens: Just an example of driving policy for the oval truck : approx measure how long it takes to complete a lap : param kwargs will be a location event as dict produced by the ' build_location_event ' function : return :
comment: """
      Just an example of driving policy for the oval truck: approx measure how long it takes to complete a lap
  
      :param kwargs will be a location event as dict produced by the 'build_location_event' function
      :return:
      """$SEP$# time the lap and print it: if there is no last time, it means it's the first time$SEP$# update lap time