code: def polynomial_matrix(x, powers, out):
      """Evaluate monomials, with exponents from `powers`, at `x`."""
      pwr = x[:, None, :] ** powers[None, :, :]
      cp.prod(pwr, axis=-1, out=out)
  
file_path: cupy/cupyx/scipy/interpolate/_rbfinterp.py
imports: import math
  import warnings
  from itertools import combinations_with_replacement
  import cupy
label_desc: Use image node_id 2 for calling a global function with example usage: polynomial_matrix(x, powers, out) without return types