def METHOD_NAME():
    client = TestBase(
        credential=DefaultAzureCredential(),
        subscription_id="subscription-id",
    )
    response = client.packages.begin_update(
        resource_group_name="contoso-rg1",
        test_base_account_name="contoso-testBaseAccount1",
        package_name="contoso-package2",
        parameters={
            "properties": {
                "blobPath": "storageAccountPath/package.zip",
                "flightingRing": "Insider Beta Channel",
                "isEnabled": False,
                "targetOSList": [
                    {"osUpdateType": "Security updates", "targetOSs": ["Windows 10 2004", "Windows 10 1903"]}
                ],
                "tests": [
                    {
                        "commands": [
                            {
                                "action": "Install",
                                "alwaysRun": True,
                                "applyUpdateBefore": False,
                                "content": "app/scripts/install/job.ps1",
                                "contentType": "Path",
                                "maxRunTime": 1800,
                                "name": "Install",
                                "restartAfter": True,
                                "runAsInteractive": True,
                                "runElevated": True,
                            },
                            {
                                "action": "Launch",
                                "alwaysRun": False,
                                "applyUpdateBefore": True,
                                "content": "app/scripts/launch/job.ps1",
                                "contentType": "Path",
                                "maxRunTime": 1800,
                                "name": "Launch",
                                "restartAfter": False,
                                "runAsInteractive": True,
                                "runElevated": True,
                            },
                            {
                                "action": "Close",
                                "alwaysRun": False,
                                "applyUpdateBefore": False,
                                "content": "app/scripts/close/job.ps1",
                                "contentType": "Path",
                                "maxRunTime": 1800,
                                "name": "Close",
                                "restartAfter": False,
                                "runAsInteractive": True,
                                "runElevated": True,
                            },
                            {
                                "action": "Uninstall",
                                "alwaysRun": True,
                                "applyUpdateBefore": False,
                                "content": "app/scripts/uninstall/job.ps1",
                                "contentType": "Path",
                                "maxRunTime": 1800,
                                "name": "Uninstall",
                                "restartAfter": False,
                                "runAsInteractive": True,
                                "runElevated": True,
                            },
                        ],
                        "isActive": True,
                        "testType": "OutOfBoxTest",
                    }
                ],
            },
            "tags": {},
        },
    ).result()
    print(response)