code: def encode_list(l, infos=None):  # noqa: E741
      """Given a list of arrays, encode them into a list of byte arrays."""
      if infos is None:
          infos = [""]
      else:
          if len(l) != len(infos):
              raise ValueError(
                  f"length of list {l} must muatch length of infos {infos}"
              )
      result = []
      for i, a in enumerate(l):
          header = encode_header(a, infos[i % len(infos)])
          result += [header, bytedata(a)]
      return result
  
imports: import struct
  import sys
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: encode_list(l, infos) and returns: result