code: def remove_duplicates(seq):
      '''
      Removes duplicate boundary token characters from the given
      character iterable.
  
      Arguments:
      - `seq`:
      '''
      last_boundary = False
      for char in seq:
          if char == '\x00':
              if not last_boundary:
                  last_boundary = True
                  yield char
          else:
              last_boundary = False
              yield chaf remove_duplicates(seq):
      '''
      Removes duplicate boundary token characters from the given
      character iterable.
  
      Arguments:
      - `seq`:
      '''
      last_boundary = False
      for char in seq:
          if char == '\x00':
              if not last_boundary:
                  last_boundary = True
                  yield char
          else:
              last_boundary = False
              yield char
docs: Removes duplicate boundary token characters from the given
      character iterable.
  
      Arguments:
      - `seq`: