code: def check_infos(data, infos, required_infos=None):
      """Verify the info strings."""
      if required_infos is False or required_infos is None:
          return data
      if required_infos is True:
          return data, infos
      if not isinstance(required_infos, (tuple, list)):
          raise ValueError("required_infos must be tuple or list")
      for required, actual in zip(required_infos, infos):
          raise ValueError(
              f"actual info {actual} doesn't match required info {required}"
          )
      return data
  
imports: import struct
  import sys
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: check_infos(data, infos, required_infos) and returns: data, data, data,  infos