XmImGetXIM(3) on Linux
The text e7d6b4708df9, as Debian 13 (Trixie), Debian 12 (Bookworm), Debian 11 (Bullseye), Debian 10 (Buster), Debian 9 (Stretch), Debian 8 (Jessie) shipped it.
An input manager function that retrieves the input method associated with a specified widget "XmImGetXIM" "input manager functions" "XmImGetXIM"