code: def get(self, sent_id, **kwargs):
          ''' If sent_id exists, remove and return the associated sentence object else return default.
          If no default is provided, KeyError will be raised.'''
          if sent_id is not None and not isinstance(sent_id, int):
              sent_id = int(sent_id)
          if sent_id is None or not self.has_id(sent_id):
              if 'default' in kwargs:
                  return kwargs['default']
              else:
                  raise KeyError("Invalid sentence ID ({})".format(sent_id))
          return self.__sent_map[sent_idf get(self, sent_id, **kwargs):
          ''' If sent_id exists, remove and return the associated sentence object else return default.
          If no default is provided, KeyError will be raised.'''
          if sent_id is not None and not isinstance(sent_id, int):
              sent_id = int(sent_id)
          if sent_id is None or not self.has_id(sent_id):
              if 'default' in kwargs:
                  return kwargs['default']
              else:
                  raise KeyError("Invalid sentence ID ({})".format(sent_id))
          return self.__sent_map[sent_id]
docs: If sent_id exists, remove and return the associated sentence object else return default.
          If no default is provided, KeyError will be raised.