code: def true_range(
      high, low, close, talib=None, drift=None, offset=None, **kwargs
  ):
      """Indicator: True Range"""
      # Validate arguments
      high = verify_series(high)
      low = verify_series(low)
      close = verify_series(close)
      drift = get_drift(drift)
      offset = get_offset(offset)
      mode_tal = bool(talib) if isinstance(talib, bool) else True
  
      # Calculate Result
      if Imports["talib"] and mode_tal:
          from talib import TRANGE
  
          true_range = TRANGE(high, low, close)
      else:
          high_low_range = non_zero_range(high, low)
          prev_close = close.shift(drift)
          ranges = [high_low_range, high - prev_close, prev_close - low]
          true_range = concat(ranges, axis=1)
          true_range = true_range.abs().max(axis=1)
          true_range.iloc[:drift] = npNaN
  
      # Offset
      if offset != 0:
          true_range = true_range.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          true_range.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          true_range.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name and Categorize it
      true_range.name = f"TRUERANGE_{drift}"
      true_range.category = "volatility"
  
      return true_range
  
imports: from numpy import nan
  from pandas import concat
  from pandas_ta import Imports
  from pandas_ta.utils import get_drift, get_offset, non_zero_range, verify_series
label_desc: Use image node_id 1 for calling a global function with example usage: true_range(high, low, close, talib, drift, offset) and returns: true_range