import concurrent.futures
import time
from playwright.sync_api import sync_playwright
def run_browser_session(process_number) -> bool:
    with sync_playwright() as p:
        s = time.time()
        browser = p.chromium.launch(headless=False, slow_mo=1000)
        context = browser.new_context()
        trace_filename = f"trace_{process_number}.zip"
        context.tracing.start(screenshots=True, snapshots=True, sources=True)
        page = context.new_page()
        page.goto("https://smart.gdrfad.gov.ae/HomePage.aspx?GdfraLocale=en-US")
        page.get_by_label("lblUsername").fill("john9898")
        page.get_by_label("lblPassword").fill("Kalpesh@08")
        page.get_by_role("button", name="Login").click()
        page.get_by_role("link", name="New Application Create new").click()
        page.get_by_role("link", name="New 5 Years Tourism Entry").click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt629_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbAddressInsideEmiratesId"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="DUBAI").click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt586_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbVisitPurpose"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="Tourism").click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt217_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbPassportTypeId"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="Normal").click()
        page.get_by_label("Passport Number").fill("P100000")
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt217_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbApplicantNationality"
        ).get_by_role("link", name="-- Select -- ").click()
        page.get_by_role("combobox", name="Current Nationality", exact=True).fill(
            "india"
        )
        page.get_by_text("INDIA", exact=True).click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt217_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbApplicantPreviousNationality"
        ).get_by_role("link", name="-- Select -- ").click()
        page.get_by_role("combobox", name="Previous Nationality", exact=True).fill(
            "india"
        )
        page.get_by_text("INDIA", exact=True).click()
        page.get_by_role("button", name="Search Data").click()
        page.get_by_label("Mother Name En").fill("SIYA DEO")
        page.locator(
            "css=div[onclick=\"translateInputText('inpMotherNameEn');\"] img"
        ).click()
        page.get_by_label("Mother Name En").fill("SIYA DEO")
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt437_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbApplicantReligion"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="HINDHU").click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt437_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbApplicantMaritalStatus"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="SINGLE").click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt437_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbApplicantEducation"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="B.SC. COMMERCE & BUSINESS ADMN").click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt437_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbApplicantLanguage1"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="ENGLISH").click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt437_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbComingFromCountry"
        ).get_by_role("link", name="-- Select -- ").click()
        page.get_by_role("combobox", name="Coming From Country", exact=True).fill(
            "india"
        )
        page.get_by_text("INDIA", exact=True).click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt437_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbBankStatementCountry"
        ).get_by_role("link", name="-- Select -- ").click()
        page.get_by_role("combobox", name="Bank Satement Country", exact=True).fill(
            "india"
        )
        page.get_by_text("INDIA", exact=True).click()
        page.get_by_placeholder("Type or click for list").click()
        page.get_by_placeholder("Type or click for list").fill("MANAGER")
        page.get_by_label("Email", exact=True).fill("rpa.support@visaero.com")
        page.get_by_label("Approval Email Copy Recipient").fill(
            "rpa.support@visaero.com"
        )
        page.locator(
            "#EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt629_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtinpMobileNumber"
        ).fill("0559856719")
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt629_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbPreferredLanguage"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="ENGLISH").click()
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt629_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbAddressInsideCityId"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="Dubai").click()
        page.get_by_label("Street").fill("SHAIKH ZAYED ROAD")
        page.get_by_label("Building/Villa").fill("LATIFA TOWER")
        page.get_by_label("Floor").fill("3")
        page.get_by_label("Flat/Villa no.").fill("310")
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt629_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbApplicantOutsideCountry"
        ).get_by_role("link", name="-- Select -- ").click()
        page.get_by_role("combobox", name="Country", exact=True).fill("india")
        page.get_by_text("INDIA", exact=True).click()
        page.get_by_role("textbox", name="City *").fill("MUMBAI")
        page.get_by_label("Address").fill(
            "MALAPPURAM DIST, KERALA -676507.^H301318430/03/2009 JEDDAH"
        )
        page.locator(
            "#EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt629_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtinpAddressOutsideMobileNumber"
        ).click()
        page.locator(
            "#EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt629_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtinpAddressOutsideMobileNumber"
        ).press_sequentially("0501234567")
        page.locator(
            "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt437_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbApplicantFaith"
        ).get_by_role("link", name="-- Select -- ").click()
        page.locator("li").filter(has_text="UnKnown").click()
        page.get_by_role("link", name="Select Area ").click()
        page.locator("li").filter(has_text="Trade Centre 1").click()
        context.tracing.stop(path=trace_filename)
        context.close()
        browser.close()
        e = time.time()
        print(f"Process {process_number}: {e - s}")

    return True

def main():
    with concurrent.futures.ProcessPoolExecutor(max_workers=4) as executor:
        futures = [executor.submit(run_browser_session, i + 1) for i in range(4)]


if __name__ == "__main__":
    main()

this code opens 4 browser instances simultaneously. i want you to modify the code so that the same process is executed n number of times. so sort of like multi threading within multi processing. dont give the entire code. only the code where changes are to be made