def _open_file_binary_write(fname):
if hasattr(fname, '<STR_LIT>'):<EOL><INDENT>return fname, False<EOL><DEDENT>return open(fname, "<STR_LIT:wb>"), True<EOL>
Open a binary file or no-op if file-like.

Parameters
----------
fname : string path, path object or buffer

Returns
-------
file : file-like object
    File object supporting write
own : bool
    True if the file was created, otherwise False