title: ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'
body: <p>My notebook was working up till today. At the beginning of my colab notebook I install tf-nightly, but now it is giving me this error:</p>
  <pre><code>---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-1-589c442233c5&gt; in &lt;module&gt;()
        7 import tensorflow as tf
        8 from tensorflow.keras import datasets, layers, models
  ----&gt; 9 from keras.preprocessing import image
       10 from keras_preprocessing.image import ImageDataGenerator #check underscore or not
       11 from tensorflow.keras.preprocessing import image_dataset_from_directory
  
  2 frames
  /usr/local/lib/python3.7/dist-packages/keras/backend.py in &lt;module&gt;()
       35 from tensorflow.python.distribute import distribute_coordinator as dc
       36 from tensorflow.python.distribute import distribute_coordinator_context as dc_context
  ---&gt; 37 from tensorflow.python.eager.context import get_config
       38 from tensorflow.python.framework import config
       39 from keras import backend_config
  
  ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' (/usr/local/lib/python3.7/dist-packages/tensorflow_core/python/eager/context.py)
  </code></pre>
  <p>My code:</p>
  <pre><code>!pip install tf-nightly
  
  import tensorflow as tf
  from tensorflow.keras import datasets, layers, models
  from keras.preprocessing import image
  from keras_preprocessing.image import ImageDataGenerator
  from tensorflow.keras.preprocessing import image_dataset_from_directory
  from keras.callbacks import Callback, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping
  </code></pre>
  <p>Installing tensorflow==2.1.0 did not work either.</p>