class_docstr: The MongoDatabaseAdapter is an interface that allows
  ChatterBot to store statements in a MongoDB database.
  
  :keyword database_uri: The URI of a remote instance of MongoDB.
                         This can be any valid
                         `MongoDB connection string <https://docs.mongodb.com/manual/reference/connection-string/>`_
  :type database_uri: str
  
  .. code-block:: python
  
     database_uri='mongodb://example.com:8100/'
class_docstr_tok: ["The","MongoDatabaseAdapter","is","an","interface","that","allows","ChatterBot","to","store","statements","in","a","MongoDB","database",".",":","keyword","database_uri",":","The","URI","of","a","remote","instance","of","MongoDB",".","This","can","be","any","valid","`","MongoDB","connection","string","<","https",":","\/\/docs.mongodb.com\/manual\/reference\/connection-string\/",">","`","_",":","type","database_uri",":","str","..","code-block",":",":","python","database_uri='mongodb",":","\/\/example.com:8100\/","'"]
docstr: Creates a new statement matching the keyword arguments specified.
  Returns the created statement.
docstr_tok: ["Creates","a","new","statement","matching","the","keyword","arguments","specified",".","Returns","the","created","statement","."]
code: def create(self, **kwargs):
      """
      Creates a new statement matching the keyword arguments specified.
      Returns the created statement.
      """
      Statement = self.get_model("statement")
  
      if "tags" in kwargs:
          kwargs["tags"] = list(set(kwargs["tags"]))
  
      if "search_text" not in kwargs:
          kwargs["search_text"] = self.tagger.get_text_index_string(
              kwargs["text"]
          )
  
      if "search_in_response_to" not in kwargs:
          if kwargs.get("in_response_to"):
              kwargs[
                  "search_in_response_to"
              ] = self.tagger.get_text_index_string(
                  kwargs["in_response_to"]
              )
  
      inserted = self.statements.insert_one(kwargs)
  
      kwargs["id"] = inserted.inserted_id
  
      return Statement(**kwargs)
  
file_path: ChatterBot/chatterbot/storage/mongodb.py
imports: import re
  from chatterbot.storage import StorageAdapter
label_desc: Use image node_id 6 for calling the MongoDatabaseAdapter obj's underlying member method code with example usage: obj.create() and returns: Statement