code: def assemble(instrs):
      res = b""
      for inst in instrs:
          m = instre.match(inst)
          if not m or not m.group(1) in aCode_map:
              continue
          opcode, parmfmt = aCode_map[m.group(1)]
          res += struct.pack("B", opcode)
          if m.group(2):
              if parmfmt == 0:
                  continue
              parms = [int(x) for x in re.split(r",\s*", m.group(2))]
              if parmfmt == -1:
                  l = len(parms)
                  res += struct.pack(("%dB" % (l + 1)), l, *parms)
              else:
                  res += struct.pack(parmfmt, *parms)
      return res
  
imports: from fontTools.misc import sstruct
  from fontTools.misc.fixedTools import floatToFixedToStr
  from fontTools.misc.textTools import byteord, safeEval
  from .None import DefaultTable
  from .None import grUtils
  from array import array
  from functools import reduce
  import struct, re, sys
label_desc: Use image node_id 2 for calling a global function with example usage: assemble(instrs) and returns: res