code: def force(
      f: Callable[[Any], None], sequence: Iterator[Any]
  ) -> Callable[[], None]:
      """Return a decorator that can "force" a function with an arbitrary
      supplied generator
  
      Args:
          sequence (iterable) :
              generator to drive f with
  
      Returns:
          decorator
  
      """
  
      def wrapper() -> None:
          f(next(sequence))
  
      return wrapper
  
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 4 for calling a global function with example usage: force(f, sequence) and returns: wrapper