code: def init_mimedb():
      
      global mimedb
      try:
          mimedb = mimetypes.MimeTypes(strict=False)
      except Exception as msg:
          log_error("could not initialize MIME database: %s" % msg)
          return
      add_mimedb_data(mimedb)
docs: Initialize the internal MIME database.