def METHOD_NAME(pool):
    completed_indices = []
    def func(mapdl, input_file, index):
        # input_file, index = args
        print(len(pool))
        mapdl.clear()
        output = mapdl.input(input_file)
        completed_indices.append(index)
        return mapdl.parameters.routine
    inputs = [(examples.vmfiles["vm%d" % i], i) for i in range(1, 11)]
    outputs = pool.map(func, inputs, progress_bar=True, wait=True)
    assert len(outputs) == len(inputs)