human
Complete the below
@pytest.fixture
def py_proc():

    ''''Get a python executable and args list which executes the given code.'
    '''
assistant
#Here is the Python code you requested.
    if getattr(sys, 'frozen', False):
        pytest.skip("Can't    be    run    when    frozen")
    def func(code):
        return (sys.executable, ['-c', textwrap.dedent(code.strip('\n'))])
    return func