def get_browser(browser_name, capabilities=None, **options):
if browser_name == "<STR_LIT>":<EOL><INDENT>return webdriver.Chrome(desired_capabilities=capabilities, **options)<EOL><DEDENT>if browser_name == "<STR_LIT>":<EOL><INDENT>return webdriver.Edge(capabilities=capabilities, **options)<EOL><DEDENT>if browser_name in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>return webdriver.Firefox(capabilities=capabilities, **options)<EOL><DEDENT>if browser_name in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>return webdriver.Ie(capabilities=capabilities, **options)<EOL><DEDENT>if browser_name == "<STR_LIT>":<EOL><INDENT>return webdriver.PhantomJS(desired_capabilities=capabilities, **options)<EOL><DEDENT>if browser_name == "<STR_LIT>":<EOL><INDENT>return webdriver.Remote(desired_capabilities=capabilities, **options)<EOL><DEDENT>if browser_name == "<STR_LIT>":<EOL><INDENT>return webdriver.Safari(desired_capabilities=capabilities, **options)<EOL><DEDENT>raise ValueError("<STR_LIT>".format(repr(browser_name)))<EOL>
Returns an instance of the given browser with the given capabilities.

Args:
    browser_name (str): The name of the desired browser.
    capabilities (Dict[str, str | bool], optional): The desired capabilities of the browser.
        Defaults to None.
    options: Arbitrary keyword arguments for the browser-specific subclass of
        :class:`webdriver.Remote`.

Returns:
    WebDriver: An instance of the desired browser.