code: def cumtrapz(y, x=None, dx=1.0, axis=-1, initial=None):
      """`An alias of `cumulative_trapezoid`.
  
      `cumtrapz` is kept for backwards compatibility. For new code, prefer
      `cumulative_trapezoid` instead.
      """
      return cumulative_trapezoid(
          y, x=x, dx=dx, axis=axis, initial=initial
      )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Callable, Dict, Tuple, Any, cast
  import functools
  import numpy
  import math
  import types
  import warnings
  from numpy import trapz
  from scipy.special import roots_legendre
  from scipy.special import gammaln
label_desc: Use image node_id 9 for calling a global function with example usage: cumtrapz(y, x, dx, axis, initial) and returns: cumulative_trapezoid