The local maximum value of the function \( f(x) = \left(\frac{2}{x}\right)^{x^{2}}, \; x>0 \), is:
\( \left(e\right)^{\frac{2}{e}} \)
\( \left(\frac{4}{\sqrt{e}}\right)^{\frac{e}{4}} \)
\( 1 \)
\( \left(2\sqrt{e}\right)^{\frac{1}{e}} \)