code: def _writeString(trans, value):
      writeVarint(trans, len(value))
      trans.write(value)
  
imports: import struct
  import zlib
  from thrift.compat import BufferIO, byte_index
  from thrift.protocol.TBinaryProtocol import TBinaryProtocol
  from thrift.protocol.TCompactProtocol import TCompactProtocol, readVarint, writeVarint
  from thrift.Thrift import TApplicationException
  from thrift.transport.TTransport import CReadableTransport, TMemoryBuffer, TTransportBase, TTransportException
label_desc: Use image node_id 2 for calling a global function with example usage: _writeString(trans, value) without return types