code: def _center(x, oshape):
      """Return an array of shape ``oshape`` from the center of array ``x``."""
      start = (np.array(x.shape) - np.array(oshape)) // 2
      out = x[tuple(slice(s, s + n) for s, n in zip(start, oshape))]
      return out
  
file_path: scikit-image/skimage/filters/lpi_filter.py
imports: import numpy
  import scipy.fft
  from .._shared.utils import _supported_float_type, check_nD
label_desc: Use image node_id 2 for calling a global function with example usage: _center(x, oshape) and returns: out