code: def bias(close, length=None, mamode=None, offset=None, **kwargs):
      """Indicator: Bias (BIAS)"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 26
      mamode = mamode if isinstance(mamode, str) else "sma"
      close = verify_series(close, length)
      offset = get_offset(offset)
  
      if close is None:
          return
  
      # Calculate Result
      bma = ma(mamode, close, length=length, **kwargs)
      bias = (close / bma) - 1
  
      # Offset
      if offset != 0:
          bias = bias.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          bias.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          bias.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name and Categorize it
      bias.name = f"BIAS_{bma.name}"
      bias.category = "momentum"
  
      return bias
  
label_desc: Use image node_id 1 for calling a global function with example usage: bias(close, length, mamode, offset) and returns: bias