[MPS] Enable `index_select` for complex types (#122590)

Surprisingly, as of MacOS-14.14 MPS `gatherWithUpdatesTensor:indicesTensor:axis:batchDimensions:name:` still does not support complex types, so emulate them by using `at::view_as_real` trick

Fixes https://github.com/pytorch/pytorch/issues/122427

Pull Request resolved: https://github.com/pytorch/pytorch/pull/122590
Approved by: https://github.com/Skylion007
diff --git a/test/test_mps.py b/test/test_mps.py
index 7e62b55..6f847e8 100644
--- a/test/test_mps.py
+++ b/test/test_mps.py
@@ -264,6 +264,7 @@
         'H',
         'hsplit',
         'imag',
+        'index_select',
         'isfinite',
         'isinf',
         'isreal',
@@ -297,6 +298,7 @@
         'randn',
         'ravel',
         'real',
+        'repeat_interleave',
         'reshape_as',
         'reshape',
         'resolve_conj',