<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepare_pyspark_yarn_interactive(env_name, env_archive, spark_conf):
 """ This ASSUMES that you have a compatible python environment running on the other side. WARNING: Injects "PYSPARK_DRIVER_PYTHON" and "PYSPARK_PYTHON" as environmental variables into your current environment Parameters env_name : str env_archive : str spark_conf : SparkConfiguration Examples -------- Returns ------- SparkConfiguration Copy of `spark_conf` input with added Yarn requirements. """


    from .launcher import SparkConfiguration

    assert isinstance(spark_conf, SparkConfiguration)

    yarn_python = os.path.join(".", "CONDA", env_name, "bin", "python")
    archives = env_archive + "#CONDA"

    new_spark_conf = copy.deepcopy(spark_conf)
    new_spark_conf.master = "yarn"
    new_spark_conf.deploy_mode = "client"
    new_spark_conf.archives = [archives]
    new_spark_conf.conf.set("spark.executorEnv.PYSPARK_PYTHON", yarn_python)
    new_spark_conf._python_path = yarn_python

    env_update = {
        "PYSPARK_DRIVER_PYTHON": sys.executable,
        "PYSPARK_PYTHON": yarn_python
    }

    os.environ.update(env_update)

    return new_spark_conf