code: def _advance(f: Callable[[int], T]) -> Iterable[T]:
      """Yield a sequence generated by calling a given function with
      successively incremented integer values.
  
      Args:
          f (callable) :
              The function to advance
  
      Yields:
          f(i) where i increases each call
  
      """
      i = 0
      while True:
          yield f(i)
          i += 1
  
file_path: bokeh/src/bokeh/driving.py
imports: from __future__ import annotations
  import logging
  from functools import partial
  from typing import Any, Callable, Iterable, Iterator, Sequence, TypeVar
label_desc: Use image node_id 8 for calling a global function with example usage: _advance(f) without return types