How to run test scripts on Edge IE Mode?

I want to run IE11 tests in Edge-IE-mode,
and new IEDriverServer(v 4.0.0) downloaded from SeleniumHQ.
BTW, selenium 3.141.0 and seleniumLibrary 5.1.0 are used.

To launch Microsoft Edge in IE mode with IEDriver, I tried to add below code into selenium\webdriver\ie\webdriver.py

ie_options.attach_to_edge_chrome = True
ie_options.edge_executable_path = r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"

But it was of no use. IE always is launched.

Q: How to make it with Robotframework?

With the latest version of Selenium (4.2.0) and SeleniumLibrary (6.0.0) the following should work

*** Settings ***
Library  SeleniumLibrary

*** Variables ***
${IEDriver}  C:/DevTools/Selenium/IEDriverServer.exe

*** Test Cases ***
Open IE In Edge Mode
    Open Browser  https://www.google.com/  ie  executable_path=${IEDriver}  options=attach_to_edge_chrome=True; edge_executable_path="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
    Close All Browsers

Hi,
I am getting,

AttributeError: ‘Options’ Object has no attribute ‘attach_to_edge_chrome’