code: def integral_of_polyval(params, t):
      """Compute the time integral of polyval."""
      from jax import numpy as jnp
  
      if qml.math.ndim(t) == 0:
          t = [0, t]
      start, end = t
      new_params = jnp.concatenate(
          [params / jnp.arange(len(params), 0, -1), jnp.array([0])]
      )
      return jnp.polyval(new_params, end) - jnp.polyval(
          new_params, start
      )
  
imports: import copy
  import pytest
  import numpy
  import pennylane
  from pennylane import numpy
  from pennylane.ops.qubit.special_unitary import pauli_basis_matrices, pauli_basis_strings
  from pennylane.math import expand_matrix
  from pennylane.gradients.pulse_gradient_odegen import _generate_tapes_and_coeffs, pulse_odegen, _insert_op, _nonzero_coeffs_and_words, _one_parameter_generators, _one_parameter_paulirot_coeffs, _parshift_and_contract
label_desc: Use image node_id 2 for calling a global function with example usage: integral_of_polyval(params, t) and returns: unknown