parameters: (ufunc, name)
return_statement: return func
docstring: Implement a unary special method with a ufunc.
docstring_summary: Implement a unary special method with a ufunc.
docstring_tokens: Implement a unary special method with a ufunc .
function: def _unary_method(ufunc, name):
      """Implement a unary special method with a ufunc."""
      def func(self):
          return ufunc(self)
      func.__name__ = '__{}__'.format(name)
      return func
function_tokens: def _unary_method ( ufunc , name ) : def func ( self ) : return ufunc ( self ) func . __name__ = '__{}__' . format ( name ) return func