def test_install_option_in_requirements_file(script, data, virtualenv):

    script.scratch_path.join("home1").mkdir()
    script.scratch_path.join("home2").mkdir()

    script.scratch_path.join("reqs.txt").write(
        textwrap.dedent(
            """simple --install-option='--home=%s'"""
            % script.scratch_path.join("home1")))

    result = script.pip(
        'install', '--no-index', '-f', data.find_links, '-r',
        script.scratch_path / 'reqs.txt',
        '--install-option=--home=%s' % script.scratch_path.join("home2"),
        expect_stderr=True)

    package_dir = script.scratch / 'home1' / 'lib' / 'python' / 'simple'
    assert package_dir in result.files_created
This cost function is for variational autoencoder with binary inputs
dataset/ETHPy150Open pypa/pip/tests/functional/test_install_reqs.py/test_install_option_in_requirements_file--crossover with--dataset/ETHPy150Open hycis/Mozi/mozi/cost.py/SGVB_bin