code: def rolling(
      s: "Stream[float]", window: int, min_periods: int = 1
  ) -> "Stream[List[float]]":
      """Creates a stream that generates a rolling window of values from a stream.
  
      Parameters
      ----------
      s : `Stream[float]`
          A float stream.
      window : int
          The size of the rolling window.
      min_periods : int, default 1
          The number of periods to wait before producing values from the aggregation
          function.
      """
      return Rolling(window=window, min_periods=min_periods)(s)
  
imports: from typing import List, Callable
  import numpy
  from tensortrade.feed.core.base import Stream
  from tensortrade.feed.api.float import Float
label_desc: Use image node_id 1 for calling a global function with example usage: rolling(s, window, min_periods) and returns: Rolling