code: def Write(packer_type, buf, head, n):
      """Write encodes `n` at buf[head] using `packer_type`."""
      packer_type.pack_into(buf, head, n)
  
imports: from .None import number_types
  from .None import packer
  from .compat import memoryview_type
  from .compat import import_numpy, NumpyRequiredForThisFeature
label_desc: Use image node_id 3 for calling a global function with example usage: Write(packer_type, buf, head, n) without return types