def METHOD_NAME(self, script_path):
    """
    Add a line calling ``set.seed`` to the top of the R script at the specified path.
    """
    with open(script_path) as f:
        script = f.read()
    script = f"set.seed({self.ag_config.seed})\n" + script
    with open(script_path, "w") as f:
        f.write(script)