def _is_virtio_blk(device_path):
 return device_path.basename().startswith('vd')

def _is_virtio_blk ( device_path ) : return device_path . basename ( ) . startswith ( 'vd' )
check whether the supplied device path is a virtio_blk device .