def METHOD_NAME(args):
    node_account_id = args.node_account_id
    rpc_nodes = args.rpc_nodes.split(',')
    num_nodes = args.num_nodes
    max_tps = args.max_tps
    logger.info(f'node_account_id: {node_account_id}')
    logger.info(f'rpc_nodes: {rpc_nodes}')
    logger.info(f'num_nodes: {num_nodes}')
    logger.info(f'max_tps: {max_tps}')
    node_account_key = key_mod.Key(
        node_account_id,
        mocknet.PUBLIC_KEY,
        mocknet.SECRET_KEY,
    )
    test_account_keys = [
        key_mod.Key(
            mocknet.load_testing_account_id(node_account_id, i),
            mocknet.PUBLIC_KEY,
            mocknet.SECRET_KEY,
        ) for i in range(mocknet.NUM_ACCOUNTS)
    ]
    base_block_hash = mocknet_helpers.get_latest_block_hash()
    rpc_infos = [(rpc_addr, mocknet_helpers.RPC_PORT) for rpc_addr in rpc_nodes]
    node_account = account.Account(
        node_account_key,
        mocknet_helpers.get_nonce_for_pk(
            node_account_key.account_id,
            node_account_key.pk,
        ),
        base_block_hash,
        rpc_infos=rpc_infos,
    )
    accounts = [
        account.Account(
            key,
            mocknet_helpers.get_nonce_for_pk(
                key.account_id,
                key.pk,
            ),
            base_block_hash,
            rpc_infos=rpc_infos,
        ) for key in test_account_keys
    ]
    max_tps_per_node = max_tps / num_nodes
    return load_test_utils.TestState(
        node_account,
        accounts,
        max_tps_per_node,
        rpc_infos,
    )