code: def _ptp(x):
      """Peak-to-peak value of x.
  
      This implementation avoids the problem of signed integer arrays having a
      peak-to-peak value that cannot be represented with the array's data type.
      This function returns an unsigned value for signed integer arrays.
      """
      return _unsigned_subtract(x.max(), x.min())
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  import operator
  import warnings
  import numpy
  from numpy.compat.py3k import basestring
  from numpy.core import overrides
label_desc: Use image node_id 1 for calling a global function with example usage: _ptp(x) and returns: _unsigned_subtract