code: def write(stream, l, infos=None):  # noqa: E741
      """Write a list of arrays to a stream, with magics, length, and padding."""
      for chunk in encode_list(l, infos=infos):
          write_chunk(stream, chunk)
  
imports: import struct
  import sys
  import numpy
label_desc: Use image node_id 18 for calling a global function with example usage: write(stream, l, infos) without return types