def check_resource_cleanup(rsrc, template_id, resource_data, engine_id, timeout, msg_queue):
 check_message = functools.partial(_check_for_message, msg_queue)
 rsrc.delete_convergence(template_id, resource_data, engine_id, timeout, check_message)

def check_resource_cleanup ( rsrc , template_id , resource_data , engine_id , timeout , msg_queue ) : check_message = functools . partial ( _check_for_message , msg_queue ) rsrc . delete_convergence ( template_id , resource_data , engine_id , timeout , check_message )
delete the resource if appropriate .