code: def seek_end(fileobj, offset):
      
  
      if offset < 0:
          raise ValueError
  
      if get_size(fileobj) < offset:
          fileobj.seek(0, 0)
      else:
          fileobj.seek(-offset, 2)
docs: Like fileobj.seek(-offset, 2), but will not try to go beyond the start
  
      Needed since file objects from BytesIO will not raise IOError and
      file objects from open() will raise IOError if going to a negative offset.
      To make things easier for custom implementations, instead of allowing
      both behaviors, we just don't do it.
  
      Args:
          fileobj (fileobj)
          offset (int): how many bytes away from the end backwards to seek to
  
      Raises:
          IOError