code: def detrend_mean(x, axis=None):
      """
      Return *x* minus the mean(*x*).
  
      Parameters
      ----------
      x : array or sequence
          Array or sequence containing the data
          Can have any dimensionality
  
      axis : int
          The axis along which to take the mean.  See `numpy.mean` for a
          description of this argument.
  
      See Also
      --------
      detrend_linear : Another detrend algorithm.
      detrend_none : Another detrend algorithm.
      detrend : A wrapper around all the detrend algorithms.
      """
      x = np.asarray(x)
  
      if axis is not None and axis + 1 > x.ndim:
          raise ValueError("axis(=%s) out of bounds" % axis)
  
      return x - x.mean(axis, keepdims=True)
  
imports: import functools
  from numbers import Number
  import numpy
  from matplotlib import _api, _docstring, cbook
label_desc: Use image node_id 4 for calling a global function with example usage: detrend_mean(x, axis) and returns: unknown