code: def chunk(n: int, iterable) -> Iterator[List[Dict]]:
      done = False
      while not done:
          data = []
          try:
              for _ in range(n):
                  data.append(next(iterable))
          except StopIteration:
              if data:
                  yield data
              # done = True
              break
          yield data
  
file_path: wandb/tools/wandb_export_history.py
imports: import argparse
  import sqlite3
  from typing import Dict, Iterator, List
  import pandas
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: chunk(n, iterable) without return types