code: def _reverse_annotations(old_record, new_record):
      
      # Copy the annotations over
      for k, v in list(old_record.annotations.items()):
          # Trim if appropriate
          if isinstance(v, (tuple, list)) and len(v) == len(old_record):
              assert len(v) == len(old_record)
              v = v[::-1]
          new_record.annotations[k] = v
  
      # Letter annotations must be lists / tuples / strings of the same
      # length as the sequence
      for k, v in list(old_record.letter_annotations.items()):
          assert len(v) == len(old_record)
          new_record.letter_annotations[k] = v[::-1]
docs: Copy annotations form old_record to new_record, reversing any
      lists / tuples / strings.