def _add_chrome_proxy_extension(<EOL>chrome_options, proxy_string, proxy_user, proxy_pass):
if not "<STR_LIT>".join(sys.argv) == "<STR_LIT:-c>":<EOL><INDENT>proxy_helper.create_proxy_zip(proxy_string, proxy_user, proxy_pass)<EOL><DEDENT>else:<EOL><INDENT>lock = threading.Lock()<EOL>with lock:<EOL><INDENT>time.sleep(random.uniform(<NUM_LIT>, <NUM_LIT>))<EOL>if not os.path.exists(PROXY_ZIP_PATH):<EOL><INDENT>proxy_helper.create_proxy_zip(<EOL>proxy_string, proxy_user, proxy_pass)<EOL><DEDENT>time.sleep(random.uniform(<NUM_LIT:0.1>, <NUM_LIT>))<EOL><DEDENT><DEDENT>proxy_zip = PROXY_ZIP_PATH<EOL>if not os.path.exists(PROXY_ZIP_PATH):<EOL><INDENT>proxy_zip = PROXY_ZIP_PATH_2<EOL><DEDENT>chrome_options.add_extension(proxy_zip)<EOL>return chrome_options<EOL>
Implementation of https://stackoverflow.com/a/35293284 for
        https://stackoverflow.com/questions/12848327/
        (Run Selenium on a proxy server that requires authentication.)