code: def down(db):
      database_name = _get_database_name()
      db = db[database_name]
  
      try:
          d = db["config"].find_one({})
  
          d.pop("type", None)
  
          db["config"].replace_one({"_id": d["_id"]}, d)
      except:
          pass
  
imports: import logging
  import json
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: down(db) without return types