<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copy_magic_into_pyc(input_pyc, output_pyc, src_version, dest_version):
 """Bytecodes are the same except the magic number, so just change that"""

    (version, timestamp, magic_int,
     co, is_pypy, source_size) = load_module(input_pyc)
    assert version == float(src_version), (
        "Need Python %s bytecode; got bytecode for version %s" %
        (src_version, version))
    magic_int = magic2int(magics[dest_version])
    write_bytecode_file(output_pyc, co, magic_int)
    print("Wrote %s" % output_pyc)
    return