parameters: (file, offset)
docstring: Seeks the file-like object at |file| to offset |offset| and raises a
    MachOError if anything funny happens.
docstring_summary: Seeks the file-like object at |file| to offset |offset| and raises a
    MachOError if anything funny happens.
docstring_tokens: Seeks the file - like object at |file| to offset |offset| and raises a MachOError if anything funny happens .
function: def CheckedSeek(file, offset):
    """Seeks the file-like object at |file| to offset |offset| and raises a
    MachOError if anything funny happens."""
  
    file.seek(offset, os.SEEK_SET)
    new_offset = file.tell()
    if new_offset != offset:
      raise MachOError, \
            'seek: expected offset %d, observed %d' % (offset, new_offset)
function_tokens: def CheckedSeek ( file , offset ) : file . seek ( offset , os . SEEK_SET ) new_offset = file . tell ( ) if new_offset != offset : raise MachOError , 'seek: expected offset %d, observed %d' % ( offset , new_offset )