title: module 'keras.engine.base_layer' has no attribute 'BaseRandomLayer
body: <p>The code returns an error whenever i run it, im running a conda enviroment, and ive tried installing tensorflow, keras, and layers multiple times, but none of them change anything, ive tried installing it through pip and conda multiple times, and i keep getting this error:</p>
  <pre><code>  from keras import __version__
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\__init__.py&quot;, line 25, in &lt;module&gt;
    from keras import models
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\models.py&quot;, line 20, in &lt;module&gt;
    from keras import metrics as metrics_module
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\metrics.py&quot;, line 26, in &lt;module&gt;
    from keras import activations
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\activations.py&quot;, line 20, in &lt;module&gt;
    from keras.layers import advanced_activations
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\layers\__init__.py&quot;, line 31, in &lt;module&gt;
    from keras.layers.preprocessing.image_preprocessing import CenterCrop
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\layers\preprocessing\image_preprocessing.py&quot;, line 24, in &lt;module&gt;
    from keras.preprocessing import image as image_preprocessing
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\preprocessing\__init__.py&quot;, line 26, in &lt;module&gt;
    from keras.utils import all_utils as utils
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\utils\all_utils.py&quot;, line 34, in &lt;module&gt;
    from keras.utils.multi_gpu_utils import multi_gpu_model
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\utils\multi_gpu_utils.py&quot;, line 20, in &lt;module&gt;
    from keras.layers.core import Lambda
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\layers\core\__init__.py&quot;, line 20, in &lt;module&gt;
    from keras.layers.core.dropout import Dropout
  File &quot;D:\Miniconda\envs\py39tensor\lib\site-packages\keras\layers\core\dropout.py&quot;, line 26, in &lt;module&gt;
    class Dropout(base_layer.BaseRandomLayer):
  AttributeError: module 'keras.engine.base_layer' has no attribute 'BaseRandomLayer'
  </code></pre>
  <p>code:</p>
  <pre><code>import os
  
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
  
  import tensorflow as tf
  from tensorflow import keras
  from tensorflow.keras import layers
  from tensorflow.keras.datasets import mnist
  
  (x_train, y_train), (x, test, y_test) = mnist.load_data()
  print(x_train.shape)
  print(y_train.shape)
  </code></pre>