class_docstr: Basic sweeper
class_docstr_tok: ["Basic","sweeper"]
code: def split_overrides_to_chunks(
      lst: List[List[str]], n: Optional[int]
  ) -> Iterable[List[List[str]]]:
      if n is None or n == -1:
          n = len(lst)
      assert n > 0
      for i in range(0, len(lst), n):
          yield lst[i : i + n]
  
imports: import itertools
  import logging
  import time
  from collections import OrderedDict
  from dataclasses import dataclass
  from pathlib import Path
  from typing import Any, Dict, Iterable, List, Optional, Sequence
  from omegaconf import DictConfig, OmegaConf
  from hydra.core.config_store import ConfigStore
  from hydra.core.override_parser.overrides_parser import OverridesParser
  from hydra.core.override_parser.types import Override
  from hydra.core.utils import JobReturn
  from hydra.errors import HydraException
  from hydra.plugins.launcher import Launcher
  from hydra.plugins.sweeper import Sweeper
  from hydra.types import HydraContext, TaskFunction
label_desc: Use image node_id 3 for calling the BasicSweeper obj's underlying member method code with example usage: obj.split_overrides_to_chunks(lst, n) without return types