code: def hma(close, length=None, offset=None, **kwargs):
      """Indicator: Hull Moving Average (HMA)"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 10
      close = verify_series(close, length)
      offset = get_offset(offset)
  
      if close is None:
          return
  
      # Calculate Result
      half_length = int(length / 2)
      sqrt_length = int(npSqrt(length))
  
      wmaf = wma(close=close, length=half_length)
      wmas = wma(close=close, length=length)
      hma = wma(close=2 * wmaf - wmas, length=sqrt_length)
  
      # Offset
      if offset != 0:
          hma = hma.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          hma.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          hma.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name & Category
      hma.name = f"HMA_{length}"
      hma.category = "overlap"
  
      return hma
  
label_desc: Use image node_id 1 for calling a global function with example usage: hma(close, length, offset) and returns: hma