def losetup_detach(device_file):
 check_output(['losetup', '--detach', device_file.path])

def losetup_detach ( device_file ) : check_output ( [ 'losetup' , '--detach' , device_file . path ] )
detach the supplied loopback device_file .