#NEWLINE# def create_anomaly( self , datasets , args = None , wait_time = 3 , retries = 10 ) : #NEWLINE# #INDENT# 'Creates an anomaly detector from a `dataset` or a list o `datasets`.\n\n        ' #NEWLINE# create_args = self . _set_create_from_datasets_args ( datasets , args = retries , wait_time = wait_time , retries = retries ) #NEWLINE# body = json . dumps ( create_args ) #NEWLINE# return self . _create ( self . anomaly_url , body )