<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _retrieve_binary(self, file_name):
 """Retrieve a file in binary transfer mode."""

        with open(file_name, 'wb') as f:
            return self.session.retrbinary('RETR ' + file_name, f.write)