How Does The IMF Classify Countries?

How Does The IMF Classify Countries? The main criteria used by the IMF in country classification are i) per capita income level ii) export diversification iii) degree of integration into the global financial system. The IMF uses either sums or weighted averages of data for individual countries. How do we classify countries? Based on GNI