def assert_tf_initialized():
    """Check that TensorFlow session has been initialized."""
    if tf.get_default_session() is None:
        raise RuntimeError("No default TensorFlow session found. Please call dnnlib.tflib.init_tf().")
Check that TensorFlow session has been initialized.
converters/stylegan_official/dnnlib/tflib/tfutil.py