SERVER-138316ClosedFixed
Add shared test utilities for write command query shapes and query stats keys
_Why:_ Unit tests for write command query shapes and query stats keys each build commands, parsed requests and shapes by hand. _What:_ Add shared test utilities that build write command query shapes and query stats keys from command BSON, and use them in the existing tests. Test-only change.