code: def force_seek(fd, offset, chunk=CHUNK):
      
      try:
          fd.seek(offset)
      except (AttributeError, io.UnsupportedOperation):
          # This file handle probably has no seek()
          emulate_seek(fd, offset, chunk)
docs: Force adjustment of read cursort to specified offset
  
      This function takes a file descriptor ``fd`` and tries to seek to position
      specified by ``offset`` argument. If the descriptor does not support the
      ``seek()`` method, it will fall back to ``emulate_seek()``.
  
      The optional ``chunk`` argument can be used to adjust the chunk size for
      ``emulate_seek()``.