code: def iter_slice(iterable: bytes, n: int):
      """Yield slices of size n and says if each slice is the last one.
  
      s -> (b'123', False), (b'45', True)
      """
      start = 0
      stop = start + n
      final_offset = len(iterable)
  
      while True:
          if start >= final_offset:
              break
  
          rv = iterable[start:stop]
          start = stop
          stop = start + n
          yield rv, start >= final_offset
  
imports: import itertools
  from typing import Iterable
label_desc: Use image node_id 2 for calling a global function with example usage: iter_slice(iterable, n) without return types