code: def mom(close, length=None, talib=None, offset=None, **kwargs):
      """Indicator: Momentum (MOM)"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 10
      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 MOM
  
          mom = MOM(close, length)
      else:
          mom = close.diff(length)
  
      # Offset
      if offset != 0:
          mom = mom.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          mom.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          mom.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name and Categorize it
      mom.name = f"MOM_{length}"
      mom.category = "momentum"
  
      return mom
  
label_desc: Use image node_id 1 for calling a global function with example usage: mom(close, length, talib, offset) and returns: mom