def update_wrapper(wrapper, wrapped, *args, **kwargs):
  wrapper = _UPDATE_WRAPPER_ORIGINAL(wrapper, wrapped, *args, **kwargs)
  setattr(wrapper, '__wrapped__', wrapped)
  return wrapper
commandr version of functools.update_wrapper
dataset/ETHPy150Open tellapart/commandr/commandr/functools_util.py/update_wrapper