code: def hl2(high, low, offset=None, **kwargs):
      """Indicator: HL2"""
      # Validate Arguments
      high = verify_series(high)
      low = verify_series(low)
      offset = get_offset(offset)
  
      # Calculate Result
      hl2 = 0.5 * (high + low)
  
      # Offset
      if offset != 0:
          hl2 = hl2.shift(offset)
  
      # Name & Category
      hl2.name = "HL2"
      hl2.category = "overlap"
  
      return hl2
  
label_desc: Use image node_id 1 for calling a global function with example usage: hl2(high, low, offset) and returns: hl2