code: def stdev(
      close, length=None, ddof=None, talib=None, offset=None, **kwargs
  ):
      """Indicator: Standard Deviation"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 30
      ddof = (
          int(ddof)
          if isinstance(ddof, int) and ddof >= 0 and ddof < length
          else 1
      )
      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 STDDEV
  
          stdev = STDDEV(close, length)
      else:
          stdev = variance(close=close, length=length, ddof=ddof).apply(
              npsqrt
          )
  
      # Offset
      if offset != 0:
          stdev = stdev.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          stdev.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          stdev.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name & Category
      stdev.name = f"STDEV_{length}"
      stdev.category = "statistics"
  
      return stdev
  
imports: from numpy import sqrt
  from .variance import variance
  from pandas_ta import Imports
  from pandas_ta.utils import get_offset, verify_series
label_desc: Use image node_id 1 for calling a global function with example usage: stdev(close, length, ddof, talib, offset) and returns: stdev