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.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
dino-query-stats