def read_block(fd, block=<NUM_LIT:4> * <NUM_LIT>):
from os import read<EOL>try:<EOL><INDENT>return read(fd, block)<EOL><DEDENT>except OSError as error:<EOL><INDENT>if error.errno == <NUM_LIT:5>:<EOL><INDENT>return b'<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>
Read up to 4k bytes from fd.
    Returns empty-string upon end of file.