original_docstring: 
          Fetch the given database or, if not existing, creates it
          :param database_name: the name of database to fetch
          :return: a database instance
          
docstring: Fetch the given database or, if not existing, creates it
docstring_tokens: Fetch the given database or if not existing creates it
code: def fetch_or_create_database(self, database_name: str) -> Database:
          """
          Fetch the given database or, if not existing, creates it
          :param database_name: the name of database to fetch
          :return: a database instance
          """
          if not self.has_database(database_name):
              self.sys_db.create_database(database_name, users=None)
          return self.client.db(database_name, username=self.username, password=self.password, verify=True)
code_tokens: def fetch_or_create_database ( self , database_name : str ) -> Database : if not self . has_database ( database_name ) : self . sys_db . create_database ( database_name , users = None ) return self . client . db ( database_name , username = self . username , password = self . password , verify = True )
short_docstring: Fetch the given database or, if not existing, creates it
short_docstring_tokens: Fetch the given database or if not existing creates it
comment: """
          Fetch the given database or, if not existing, creates it
          :param database_name: the name of database to fetch
          :return: a database instance
          """