def write_to_file(src, dst):
n = <NUM_LIT:0><EOL>for block in src:<EOL><INDENT>dst.write(block)<EOL>n += len(block)<EOL><DEDENT>return n<EOL>
Write data from `src` into `dst`.

    Args:
        src (iterable): iterable that yields blocks of data to write
        dst (file-like object): file-like object that must support
            .write(block)

    Returns:
        number of bytes written to `dst`