human
Complete this python program:
def _inherit_doc(cls):
assistant
#Here is the Python program you requested.

    """Decorator for inheriting docstrings from base classes.
    """
    def func(fn):
        fn.__doc__ = cls.__dict__[fn.__name__].__doc__
        return fn
    return func