code: def pct_change(
      s: "Stream[float]", periods: int = 1, fill_method: str = "pad"
  ) -> "Stream[float]":
      """Computes the percent change of a float stream.
  
      Parameters
      ----------
      s : `Stream[float]`
          A float stream.
      periods : int, default 1
          The number of periods to lag for until computing the percent change.
      fill_method : str, default "pad"
          The fill method to use for missing values.
  
      Returns
      -------
      `Stream[float]`
          The percent change stream of `s`.
      """
      if fill_method is not None:
          assert fill_method in ["pad", "ffill"]
      if fill_method == "pad" or fill_method == "ffill":
          stream = s.ffill()
      else:
          stream = s
      change = (stream / stream.lag(periods)) - 1
      return change.astype("float")
  
file_path: tensortrade/tensortrade/feed/api/float/utils.py
imports: import numpy
  from tensortrade.feed.core.base import Stream
  from tensortrade.feed.core.operators import BinOp
  from tensortrade.feed.api.float import Float
label_desc: Use image node_id 6 for calling a global function with example usage: pct_change(s, periods, fill_method) and returns: change