def METHOD_NAME(pyi_builder):
    pyi_builder.test_source(
        """
        import multiprocessing
        import concurrent.futures
        def square(x):
            return x * x
        if __name__ == '__main__':
            multiprocessing.freeze_support()
            values = range(10)
            with concurrent.futures.ProcessPoolExecutor() as executor:
                result = list(executor.map(square, values))
            assert result == [x * x for x in values]
        """
    )