human
read a binary file (python)
assistant
Here is some code to read a binary file 'test/test.pdf'

f = open('test/test.pdf', 'rb')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.