code: def __trapezoidal_numeric_integral__(x, y):
      """
      Compute numeric integral using the trapezoidal rule.
  
      :param x: the x coordinate of the curve
      :type x: list or numpy array
      :param y: the y coordinate of the curve
      :type y: list or numpy array
      :return: numeric integral value as float
      """
      area = numpy.trapz(y, x)
      if isinstance(area, numpy.memmap):
          area = area.dtype.type(area)
      return abs(area)
  
imports: from __future__ import division
  from .pycm_error import pycmCurveError, pycmPlotError
  from .pycm_util import threshold_func, thresholds_calc, isfloat
  from .pycm_param import *
  from .pycm_obj import ConfusionMatrix
  from warnings import warn
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: __trapezoidal_numeric_integral__(x, y) and returns: abs