The return values are handled similarly. However, we must extend the target description for them. First, we need to define…