code: def write_bool(self, v):
      self._buf += b"\x01" if v else b"\x00"
  
imports: import struct
  from typing import Union
label_desc: Use image node_id 5 for calling the ByteWriter obj's underlying member method code with example usage: obj.write_bool(v) without return types