To be honest, this was based upon my lack of familiarity with sklearn type-checking.

My code is known to work ONLY on 2-d dense numpy arrays.

I appreciate any advice you have about how to improve the type-checking.