My code for establishing the db connection for mongodb atlas is:-
from pymongo import MongoClient from pprint import pprint def db_connect(): client = MongoC