langchain/tools/playwright/utils.py/create_sync_playwright_browser
def create_sync_playwright_browser(headless: bool = True) -> SyncBrowser:
    from playwright.sync_api import sync_playwright

    browser = sync_playwright().start()
    return browser.chromium.launch(headless=headless)