Is there an example to fake media with Chrome options using Python and Selenium 4?

I am trying to fake media using google chrome options using python and selenium 4, for some reason its not working, does anyone have an example code?

Hi Joe,

Please refer the following set of caps for Chrome options using Python:

options = webdriver.ChromeOptions()
        lt_options = {};
        lt_options["project"] = "Untitled"
        lt_options["w3c"] = True
        lt_options["plugin"] = "python-python"
        lt_options["version"] = "latest"
        lt_options["platform"] = "Windows 11"
        lt_options["goog:chromeOptions"] = {"args":["--use-fake-device-for-media-stream","--use-fake-ui-for-media-stream"]}
        options.set_capability('LT:Options', lt_options)
        username = os.getenv('LT_USERNAME')
        access_key = os.getenv('LT_ACCESS_KEY')
        selenium_endpoint = "http://{}:{}@hub.lambdatest.com/wd/hub".format(username, access_key)