My situation goes like this:

* I have a windows-based server program and a linux-based client.
* I have many tests for the linux clients which run and are required to run on local linux machines
* I need to run some code from windows server machine which will send some messages to the linux clients. Then, a test shall be executed on linux client machines which verifies the effect of those messages

So a typical test case would look like this, running on windows host:

```
test_example_message(self):
    # has to be executed locally on windows server
    send_message(EXAMPLE, hosts)
    # has to be executed locally on linux clients
    for host in hosts:
        verify_message_effect(EXAMPLE, host)

```

I have found that **pytest-xdist** is somehow able to do that.

I there any good tutorial or code example on how to use it?