Question: This was working fine till yesterday with keras 2.2.4, i did train a model too so today i had to restart the runtime and i had to downgrade keras to 2.2.4 and when I import keras I get an error.

my tensorflow ver-2.5.0

```
pip install keras==2.2.4

```

* 

```
import keras

```

The error I get

```
Using TensorFlow backend.
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-88d96843a926> in <module>()
----> 1 import keras

8 frames
/usr/local/lib/python3.7/dist-packages/keras/initializers/__init__.py in populate_deserializable_objects()
     80     v2_objs = {}
     81     base_cls = initializers_v2.Initializer
---> 82     generic_utils.populate_dict_with_module_objects(
     83         v2_objs,
     84         [initializers_v2],

AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects' 

```

Answer: 
Perhaps something like this

```
Declare @YourTable table (Name varchar(50),Balance money)
Insert Into @YourTable values
 ('A',15000)
,('B',25360)
,('C',1255555)
,('D',945)

Select *
      ,Formated =coalesce( 
                          left(nullIf( convert(int,Balance) / 1000000000 ,0),3)+'B'
                         ,left(nullIf( convert(int,Balance) / 1000000 ,0),3)+'M'
                         ,left(nullIf( convert(int,Balance) / 1000 ,0),3)+'K'
                         ,left(nullIf( convert(int,Balance) / 100 ,0),3)  -- Not sure why 9 and not 945
                         )
 From  @YourTable

```

**Results**

```
Name    Balance     Formated
A       15000.00    15K
B       25360.00    25K
C       1255555.00  1M
D       945.00      9   -- Not clear why this would not be 945

```
You can use arithmetic and string operations:

```
select concat( floor(balance / 1000), 'K')

```

You could make this conditional as well:

```
select (case when balance < 1000 then cast(balance as varchar(255))
             when balance < 1000000 then concat( floor(balance / 1000), 'K')
             else concat( floor(balance / 1000000), 'M')
        end)

```