How do I check which versions of packages I’m using in GoogleColab?

Solution for How do I check which versions of packages I’m using in GoogleColab?
is Given Below:

Some are preinstalled in Colab and some installed with !pip install module_name in Colab cell.