code: def power_of_digits(n, p):
      s = 0
      while n > 0:
          d = n % 10
          n = n // 10
          s = s + pow(d, p)
      return s
  
label_desc: Use image node_id 1 for calling a global function with example usage: power_of_digits(n, p) and returns: s