code: def t3(close, length=None, a=None, talib=None, offset=None, **kwargs):
      """Indicator: T3"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 10
      a = float(a) if a and a > 0 and a < 1 else 0.7
      close = verify_series(close, length)
      offset = get_offset(offset)
      mode_tal = bool(talib) if isinstance(talib, bool) else True
  
      if close is None:
          return
  
      # Calculate Result
      if Imports["talib"] and mode_tal:
          from talib import T3
  
          t3 = T3(close, length, a)
      else:
          c1 = -a * a**2
          c2 = 3 * a**2 + 3 * a**3
          c3 = -6 * a**2 - 3 * a - 3 * a**3
          c4 = a**3 + 3 * a**2 + 3 * a + 1
  
          e1 = ema(close=close, length=length, **kwargs)
          e2 = ema(close=e1, length=length, **kwargs)
          e3 = ema(close=e2, length=length, **kwargs)
          e4 = ema(close=e3, length=length, **kwargs)
          e5 = ema(close=e4, length=length, **kwargs)
          e6 = ema(close=e5, length=length, **kwargs)
          t3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3
  
      # Offset
      if offset != 0:
          t3 = t3.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          t3.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          t3.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name & Category
      t3.name = f"T3_{length}_{a}"
      t3.category = "overlap"
  
      return t3
  
label_desc: Use image node_id 1 for calling a global function with example usage: t3(close, length, a, talib, offset) and returns: t3