#NEWLINE# def i_create_a_batch_prediction_with_cluster( step ) : #NEWLINE# #INDENT# dataset = world . dataset . get ( 'resource' ) #NEWLINE# cluster = world . cluster . get ( 'resource' ) #NEWLINE# resource = world . api . create_batch_centroid ( cluster , resource ) #NEWLINE# world . status = resource [ 'code' ] #NEWLINE# assert ( world . status == HTTP_CREATED ) #NEWLINE# world . location = resource [ 'location' ] #NEWLINE# world . batch_centroid = resource [ 'object' ] #NEWLINE# world . batch_centroids . append ( resource [ 'resource' ] )