'Wrapper for test session context manager with required initialization.
Yields:
A session object that should be used as a context manager.'

@contextlib.contextmanager
def initialized_session(self):

    with self.test_session() as sess:
        sess.run(tf.global_variables_initializer())
        sess.run(tf.local_variables_initializer())
        (yield sess)
