#NEWLINE# def anomaly_is_ready( self , anomaly , **kwargs ) : #NEWLINE# #INDENT# "Checks whether an anomaly detector's status is FINISHED.\n\n        " #NEWLINE# check_resource_type ( anomaly , ANOMALY_PATH , message = 'An anomaly id is needed.' ) #NEWLINE# resource = self . get_anomaly ( anomaly , ** kwargs ) #NEWLINE# return resource_is_ready ( resource )