def download_file(client, bucket, remote_path, local_path, overwrite=False):
bucket = client.get_bucket(bucket)<EOL>if (not overwrite) and os.path.isfile(local_path):<EOL><INDENT>raise OSError('<STR_LIT>')<EOL><DEDENT>with open(local_path, '<STR_LIT:wb>') as ofh:<EOL><INDENT>bucket.get_blob(remote_path).download_to_file(ofh)<EOL><DEDENT>
Downloads a file from a bucket.

    TODO: docstring