TH2::Chi2Test?

I am using version 5.18 (bound by collaboration software). Does anyone have an implementation that calculates a bin-by-bin Chi2 that compares two TH2 histograms, analogous to TH1::Chi2Test ?

If not, I envision some transformation that sends the global bin number+content for TH2 to a (distorted shape) TH1 and then perform the test.

Thanks,
Aaron