parameters: (x, x0)
return_statement: return wrap(x)
docstring: Return ndarray `x` as same array subclass and shape as `x0`
docstring_summary: Return ndarray `x` as same array subclass and shape as `x0`
docstring_tokens: Return ndarray x as same array subclass and shape as x0
function: def _array_like(x, x0):
      """Return ndarray `x` as same array subclass and shape as `x0`"""
      x = np.reshape(x, np.shape(x0))
      wrap = getattr(x0, '__array_wrap__', x.__array_wrap__)
      return wrap(x)
function_tokens: def _array_like ( x , x0 ) : x = np . reshape ( x , np . shape ( x0 ) ) wrap = getattr ( x0 , '__array_wrap__' , x . __array_wrap__ ) return wrap ( x )