def METHOD_NAME(tmpdir):
    pool = LocalMapdlPool(
        2,
        run_location=tmpdir,
        nproc=NPROC,
        names="my_instance",
        port=50056,
        additional_switches=LAUNCH_SWITCHES,
    )
    dirs_path_pool = os.listdir(pool._root_dir)
    assert "my_instance_0" in dirs_path_pool
    assert "my_instance_1" in dirs_path_pool
    pool.exit(block=True)