code: def expanding(
      s: "Stream[float]", min_periods: int = 1
  ) -> "Stream[List[float]]":
      """Computes a stream that generates the entire history of a stream at each
      time step.
  
      Parameters
      ----------
      s : `Stream[float]`
          A float stream.
      min_periods : int, default 1
          The number of periods to wait before producing values from the aggregation
          function.
      """
      return Expanding(min_periods=min_periods)(s)
  
imports: from typing import Callable, List
  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: expanding(s, min_periods) and returns: Expanding