def setup():
    """Setups any state specific to the execution of the given module."""
    example_dir = get_example_dir("stable_diffusion")
    os.chdir(example_dir)
    sys.path.insert(0, example_dir)

    yield
    sys.path.remove(example_dir)
Setups any state specific to the execution of the given module.
examples/test/local/test_stable_diffusion_cuda_gpu.py