def creates_images(*imgnames):
@pytest.fixture<EOL>def fixture():<EOL><INDENT>client = get_client()<EOL>for name in imgnames:<EOL><INDENT>try:<EOL><INDENT>client.images.remove(name, force=True)<EOL><DEDENT>except docker.errors.ImageNotFound:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>yield<EOL>for name in imgnames:  <EOL><INDENT>try:<EOL><INDENT>client.images.remove(name, force=True)<EOL><DEDENT>except docker.errors.ImageNotFound:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>return fixture<EOL>
Creates fixtures to make sure to remove named images after (and before, if necessary)
    running a test