code: def zscore(close, length=None, std=None, offset=None, **kwargs):
      """Indicator: Z Score"""
      # Validate Arguments
      length = int(length) if length and length > 1 else 30
      std = float(std) if std and std > 1 else 1
      close = verify_series(close, length)
      offset = get_offset(offset)
  
      if close is None:
          return
  
      # Calculate Result
      std *= stdev(close=close, length=length, **kwargs)
      mean = sma(close=close, length=length, **kwargs)
      zscore = (close - mean) / std
  
      # Offset
      if offset != 0:
          zscore = zscore.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          zscore.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          zscore.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name & Category
      zscore.name = f"ZS_{length}"
      zscore.category = "statistics"
  
      return zscore
  
label_desc: Use image node_id 1 for calling a global function with example usage: zscore(close, length, std, offset) and returns: zscore