code: def generate_A(K):
      A = [Poly(1, x)]
      for k in range(K):
          A.append(
              Poly(1 - 2 * k * x, x) * A[k]
              + Poly(x * (x + 1)) * A[k].diff()
          )
      return A
  
imports: from __future__ import division, print_function, absolute_import
  import os
  from scipy._lib._numpy_compat import suppress_warnings
label_desc: Use image node_id 1 for calling a global function with example usage: generate_A(K) and returns: A