code: def next_pythagorean_triples(previous):
      matrices = np.array(
          [
              [-1, 2, 2],
              [-2, 1, 2],
              [-2, 2, 3],
              [1, 2, 2],
              [2, 1, 2],
              [2, 2, 3],
              [1, -2, 2],
              [2, -1, 2],
              [2, -2, 3],
          ]
      )
  
      next_triples = np.transpose(
          np.dot(matrices, np.transpose(previous))
      )
      next_triples = next_triples.reshape(
          (3 * previous.shape[0], previous.shape[1])
      )
      return next_triples
  
label_desc: Use image node_id 1 for calling a global function with example usage: next_pythagorean_triples(previous) and returns: next_triples