because ```_OutputArray``` has method ```dims(int i = -1)```