parameters: (ufunc, name)
return_statement: return func
docstring: Implement an in-place binary method with a ufunc, e.g., __iadd__.
docstring_summary: Implement an in-place binary method with a ufunc, e.g., __iadd__.
docstring_tokens: Implement an in - place binary method with a ufunc e . g . __iadd__ .
function: def _inplace_binary_method(ufunc, name):
      """Implement an in-place binary method with a ufunc, e.g., __iadd__."""
      def func(self, other):
          return ufunc(self, other, out=(self,))
      func.__name__ = '__i{}__'.format(name)
      return func
function_tokens: def _inplace_binary_method ( ufunc , name ) : def func ( self , other ) : return ufunc ( self , other , out = ( self , ) ) func . __name__ = '__i{}__' . format ( name ) return func