code: def happy(n):
      past = set()
      while n != 1:
          n = sum(int(i) ** 2 for i in str(n))
          if n in past:
              return False
          past.add(n)
      return True
  
label_desc: Use image node_id 1 for calling a global function with example usage: happy(n) and returns: True, False