def METHOD_NAME(environment, **kwargs):
    INIT_DONE.wait()
    node = NearNodeProxy(environment)
    worker_id = getattr(environment.runner, "worker_index", "_master")
    run_id = environment.parsed_options.run_id
    funding_account = NearUser.funding_account
    funding_account.refresh_nonce(node.node)
    sweat_contract_code = environment.parsed_options.sweat_wasm
    sweat_account_id = f"sweat{run_id}.{environment.master_funding_account.key.account_id}"
    oracle_account_id = worker_oracle_id(worker_id, run_id,
                                         environment.master_funding_account)
    sweat_account = Account(key.Key.from_seed_testonly(sweat_account_id))
    oracle_account = Account(key.Key.from_seed_testonly(oracle_account_id))
    environment.sweat = SweatContract(sweat_account, oracle_account,
                                      sweat_contract_code)
    # Create Sweat contract, unless we are a worker, in which case the master already did it
    if not isinstance(environment.runner, locust.runners.WorkerRunner):
        node.prepare_account(oracle_account, environment.master_funding_account,
                             FTContract.INIT_BALANCE, "create contract account")
        environment.sweat.install(node, environment.master_funding_account)
    # on master, register oracles for workers
    if isinstance(environment.runner, locust.runners.MasterRunner):
        num_oracles = int(environment.parsed_options.max_workers)
        oracle_accounts = [
            Account(
                key.Key.from_seed_testonly(
                    worker_oracle_id(id, run_id,
                                     environment.master_funding_account)))
            for id in range(num_oracles)
        ]
        node.prepare_accounts(oracle_accounts,
                              environment.master_funding_account, 100000,
                              "create contract account")
        for oracle in oracle_accounts:
            id = oracle.key.account_id
            environment.sweat.register_oracle(node, id)
            environment.sweat.top_up(node, id)