code: def close_db(cls):
      if cls._db is not None:
          try:
              cls._db.close()
          except Exception:
              # Must discard exceptions because Python trying to quit.
              pass
  
imports: import peewee
  from threading import Lock
  import os
  import appdirs
  import atexit
  import datetime
  import pickle
  from .utils import get_yf_logger
label_desc: Use image node_id 2 for calling the _CookieDBManager obj's underlying member method code with example usage: obj.close_db(cls) without return types