Step 1: Use VSEPR theory.
T-shape geometry corresponds to AX$_3$E$_2$ type molecule.
This means 5 electron pairs (trigonal bipyramidal arrangement) with 2 lone pairs occupying equatorial positions.
Step 2: Analyze each option.
(A) XeF$_2$ → AX$_2$E$_3$ → Linear geometry.
(B) SO$_2$ → AX$_2$E → Bent geometry.
(C) IO$_4^-$ → AX$_4$ → Tetrahedral geometry.
(D) BrF$_3$ → AX$_3$E$_2$ → Trigonal bipyramidal electron geometry with 2 lone pairs → T-shaped molecular geometry.
Step 3: Conclusion.
Therefore, BrF$_3$ shows T-shaped geometry.