human
I wrote the below code

    conn.execute(textwrap.dedent("\n                import    sys\n                import    os\n                if    not    hasattr(os,    'real_write'):\n                                setattr(os,    'real_write',    os.write)\n                                def    patched_write(fd,    s):\n                                                if    fd==1:\n                                                                return    sys.stdout.write(s)\n                                                elif    fd==2:\n                                                                return    sys.stdout.write(s)\n                                                else:\n                                                                return    os.real_write(fd,    s)\n                                os.write=patched_write\n                "))

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def hotpatch_oswrite(conn):