<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def inheritdoc(parent):
 """Inherit documentation from a parent Parameters parent : callable The parent function or class that contains the sought-after docstring. If it doesn't have a docstring, this might behave in unexpected ways. Examples -------- This is documentation 4 """

    def wrapper(func):
        # Assign the parent docstring to the child
        func.__doc__ = parent.__doc__

        @wraps(func)
        def caller(*args, **kwargs):
            return func(*args, **kwargs)
        return caller
    return wrapper