code: def triples(lim, a=3, b=4, c=5):
      l = a + b + c
      if l > lim:
          return (0, 0)
      return reduce(
          lambda x, y: (x[0] + y[0], x[1] + y[1]),
          [
              (1, int(lim / l)),
              triples(
                  lim,
                  a - 2 * b + 2 * c,
                  2 * a - b + 2 * c,
                  2 * a - 2 * b + 3 * c,
              ),
              triples(
                  lim,
                  a + 2 * b + 2 * c,
                  2 * a + b + 2 * c,
                  2 * a + 2 * b + 3 * c,
              ),
              triples(
                  lim,
                  -a + 2 * b + 2 * c,
                  -2 * a + b + 2 * c,
                  -2 * a + 2 * b + 3 * c,
              ),
          ],
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: triples(lim, a, b, c) and returns: reduce, int,  int