code: def cfo(
      close, length=None, scalar=None, drift=None, offset=None, **kwargs
  ):
      """Indicator: Chande Forcast Oscillator (CFO)"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 9
      scalar = float(scalar) if scalar else 100
      close = verify_series(close, length)
      drift = get_drift(drift)
      offset = get_offset(offset)
  
      if close is None:
          return
  
      # Finding linear regression of Series
      cfo = scalar * (close - linreg(close, length=length, tsf=True))
      cfo /= close
  
      # Offset
      if offset != 0:
          cfo = cfo.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          cfo.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          cfo.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name and Categorize it
      cfo.name = f"CFO_{length}"
      cfo.category = "momentum"
  
      return cfo
  
label_desc: Use image node_id 1 for calling a global function with example usage: cfo(close, length, scalar, drift, offset) and returns: cfo