<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _maybe_wrap_exception(exception):
 """Wraps a gRPC exception class, if needed."""

    if isinstance(exception, grpc.RpcError):
        return exceptions.from_grpc_error(exception)
    return exception