def _setup_safari(driver_class, config=None, options=None, service=None, **kwargs):
    """
    Returns: selenium.webdriver.Safari || selenium.webdriver.Remote
    """
    if driver_class == Remote:
        rv = driver_class(options=options, **kwargs)
    else:
        rv = driver_class(options=options, service=service, **kwargs)

    return rv

    Returns: selenium.webdriver.Safari || selenium.webdriver.Remote
    
splinter/driver/webdriver/setup.py