code: def set_offset_and_sequence_number(self, event_data):
          
          if not event_data:
              raise Exception(event_data)
          self.offset = event_data.offset.value
          self.sequence_number = event_data.sequence_number
docs: Updates offset based on event.
  
          :param event_data: A received EventData with valid offset and sequenceNumber.
          :type event_data: ~azure.eventhub.common.EventData