def METHOD_NAME():
    service = Service(executable_path="chromedriver",
                      log_path=settings.TEST_GHOSTDRIVER_LOG_PATH)
    service.start()
    options = Options()
    options.add_argument("headless")
    options.add_argument("disable-extensions")
    options.add_argument("disable-gpu") # headless needs this
    options.add_argument("no-sandbox") # docker needs this
    dc = DesiredCapabilities.CHROME
    dc["goog:loggingPrefs"] = {"browser": "ALL"}
    # For selenium 3:
    return webdriver.Chrome("chromedriver", options=options, desired_capabilities=dc)
    # For selenium 4:
    # return webdriver.Chrome(service=service, options=options, desired_capabilities=dc)