def METHOD_NAME(pyi_builder, monkeypatch):
    distdir = pyi_builder._distdir
    # Both eastern European and Japanese characters - no codepage should encode this.
    non_cp_filename = 'ěščřžýáíé日本語'
    # Codepage encoding would replace some of these chars with "???".
    pyi_builder._distdir = os.path.join(distdir, non_cp_filename)
    os.makedirs(pyi_builder._distdir)
    tmpdir = os.path.join(str(pyi_builder._tmpdir), non_cp_filename + "_TMP")
    # To test what happens with a non-ANSI tempdir, we will also need to pass the TMP environ as wide chars.
    monkeypatch.setenv('TMPDIR', tmpdir)
    monkeypatch.setenv('TMP', tmpdir)
    pyi_builder.test_script('pyi_path_encoding.py')