def retention_policy_exists(database, name, user=None, password=None, host=None, port=None):
 policy = retention_policy_get(database, name, user, password, host, port)
 return (policy is not None)

def retention_policy_exists ( database , name , user = None , password = None , host = None , port = None ) : policy = retention_policy_get ( database , name , user , password , host , port ) return ( policy is not None )
check if retention policy with given name exists .