Based on Tee’s unfortunate experience, I finally got around to labeling the Bafang batteries on our Tour Easy ‘bents:

On the other side, each lock is now color-coded to its key:

It’s laser-safe polyurethane vinyl applied to the battery after vigorously wiping crud off the surface with denatured alcohol. Think of it as an outdoor testcase for PSA vinyl.
I’m sure there’s a master key out there for all e-bike locks, but we remove them so rarely the color coding should suffice.
Worst case, pick the lock with a piece of wire and a hex key.