def METHOD_NAME(alamo_surrogate, data_validation):
    with TempfileManager.new_context() as tf:
        # note - a failure 'The process cannot access the file because it is
        # being used by another process' could occur if an internal error
        # arises before the results file is closed inside the surrogate method
        # create and step into new temporary directory
        dname = tf.mkdtemp()
        filename = os.path.join(dname, "results.pdf")
        surrogate_parity(
            alamo_surrogate, data_validation, filename=filename, show=False
        )
        assert os.path.exists(filename)  # PDF results file