code: def _reduce_ids(ids):
      """convert ids from list of tuples of (iterations, ids) to a list of ids"""
      if not hasattr(ids, "__len__"):
          return ids
      if len(ids) and len(ids[0]) == 1:
          ids = [None] * len(ids)
      else:
          ids = [i[-1] for i in ids]
      return ids
  
imports: from mystic.tools import list_or_tuple_or_ndarray
  from mystic.tools import isNull
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: _reduce_ids(ids) and returns: ids, ids