code: def track_progress_compact(items, *, groups=5, **mark_kwargs):
      last = os.linesep
      marks = iter_marks(groups=groups, **mark_kwargs)
      for item in items:
          last = next(marks)
          print(last, end="", flush=True)
          yield item
      if not last.endswith(os.linesep):
          print()
  
imports: import argparse
  import contextlib
  import logging
  import os
  import os.path
  import shutil
  import sys
  from .None import fsutil, strutil, iterutil, logging
label_desc: Use image node_id 28 for calling a global function with example usage: track_progress_compact(items) without return types