code: def test_permutations_on_generator(self):
      self.run_test(
          "def permutations_g(l0,a): from itertools import permutations; return sum(map(lambda t : t[0]*t[1], permutations((y for x in l0 for y in range(x)),a)))",
          [0, 1, 2],
          2,
          permutations_g=[List[int], int],
      )
  
imports: from pythran.tests import TestEnv
  import unittest
  import numpy
  from pythran.typing import List, NDArray
label_desc: Use image node_id 37 for calling the TestItertools obj's underlying member method code with example usage: obj.test_permutations_on_generator() without return types