Let \(f(x)=\cos \left(\frac{\pi}{x}\right), x \neq 0\) then assuming \(k\) as an integer,
(A) \(f(x)\) increases in the interval \(\left(\frac{1}{2 k+1}, \frac{1}{2 k}\right)\)
(B) \(f(x)\) decreases in the interval \(\left(\frac{1}{2 k+1}, \frac{1}{2 k}\right)\)
(C) \(f(x)\) decreases in the interval \(\left(\frac{1}{2 k+2}, \frac{1}{2 k+1}\right)\)
(D) \(f(x)\) increases in the interval \(\left(\frac{1}{2 k+2}, \frac{1}{2 k+1}\right)\)