import os os.environ.setdefault("TF_USE_LEGACY_KERAS", "1") import tensorflow as tf