In python3 selenium, webdriver.FirefoxProfile() is depreciated. What is alternative?

firefox_profile = webdriver.FirefoxProfile()
firefox_profile.set_preference("browser.privatebrowsing.autostart", True)
firefox_profile.set_preference("general.useragent.override", agent)
firefox_profile.set_preference("javascript.enabled", False);


driver = webdriver.Firefox(service=FirefoxService(GeckoDriverManager().install()),
                           options=options,
                           firefox_profile=firefox_profile)