code: def get_summary(stats):
      status = (
          (state, len(data) if is_seq(data) else data)
          for state, data in stats
          if data
      )
      return join(
          "{} file{} {}".format(num, "s" if num > 1 else "", state)
          for state, num in status
      )
  
imports: from funcy import is_seq
label_desc: Use image node_id 2 for calling a global function with example usage: get_summary(stats) and returns: join