code: def writePFB(path, data):
      chunks = findEncryptedChunks(data)
      with open(path, "wb") as f:
          for isEncrypted, chunk in chunks:
              if isEncrypted:
                  code = 2
              else:
                  code = 1
              f.write(bytechr(128) + bytechr(code))
              f.write(longToString(len(chunk)))
              f.write(chunk)
          f.write(bytechr(128) + bytechr(3))
  
imports: import fontTools
  from fontTools.misc import eexec
  from fontTools.misc.macCreatorType import getMacCreatorAndType
  from fontTools.misc.textTools import bytechr, byteord, bytesjoin, tobytes
  from fontTools.misc.psOperators import _type1_pre_eexec_order, _type1_fontinfo_order, _type1_post_eexec_order
  from fontTools.encodings.StandardEncoding import StandardEncoding
  import os
  import re
label_desc: Use image node_id 7 for calling a global function with example usage: writePFB(path, data) without return types