def is_error_status(status):
 status.check_initialized()
 return (RpcError.from_state(status.state) is not None)

def is_error_status ( status ) : status . check_initialized ( ) return ( RpcError . from_state ( status . state ) is not None )
function that determines whether the rpc status is an error .