code: def _maybe_wrap_exception(exception):
      
      if isinstance(exception, grpc.RpcError):
          return exceptions.from_grpc_error(exception)
      return exception
docs: Wraps a gRPC exception class, if needed.