fn should_skip_batch(kind: &BatchKind, flags: DebugFlags) -> bool