code: def is_readable(fp, size=1):
      
      read_size = len(fp.read(size))
      fp.seek(-read_size, 1)
      return read_size == size
docs: Check if the file-like object is readable.
  
      :param fp: file-like object
      :param size: byte size
      :return: bool