code: def cci(
      high,
      low,
      close,
      length=None,
      c=None,
      talib=None,
      offset=None,
      **kwargs,
  ):
      """Indicator: Commodity Channel Index (CCI)"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 14
      c = float(c) if c and c > 0 else 0.015
      high = verify_series(high, length)
      low = verify_series(low, length)
      close = verify_series(close, length)
      offset = get_offset(offset)
      mode_tal = bool(talib) if isinstance(talib, bool) else True
  
      if high is None or low is None or close is None:
          return
  
      # Calculate Result
      if Imports["talib"] and mode_tal:
          from talib import CCI
  
          cci = CCI(high, low, close, length)
      else:
          typical_price = hlc3(high=high, low=low, close=close)
          mean_typical_price = sma(typical_price, length=length)
          mad_typical_price = mad(typical_price, length=length)
  
          cci = typical_price - mean_typical_price
          cci /= c * mad_typical_price
  
      # Offset
      if offset != 0:
          cci = cci.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          cci.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          cci.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name and Categorize it
      cci.name = f"CCI_{length}_{c}"
      cci.category = "momentum"
  
      return cci
  
imports: from pandas_ta import Imports
  from pandas_ta.overlap import hlc3, sma
  from pandas_ta.statistics.mad import mad
  from pandas_ta.utils import get_offset, verify_series
label_desc: Use image node_id 1 for calling a global function with example usage: cci(high, low, close, length, c, talib, offset) and returns: cci