class_docstr: Non permanent collection
  
  This collection is meant for debugging purposes within the EphemeralDB.
  
  .. seealso:: :class:`orion.core.io.database.ephemeraldb.EphemeralDB` for database object.
class_docstr_tok: ["Non","permanent","collection","This","collection","is","meant","for","debugging","purposes","within","the","EphemeralDB",".","..","seealso",":",":",":","class",":","`","orion.core.io.database.ephemeraldb.EphemeralDB","`","for","database","object","."]
docstr: Return max id + 1
docstr_tok: ["Return","max","id","+","1"]
code: def _get_new_id(self):
      """Return max id + 1"""
      if self._documents:
          # NOTE: Custom ids than are not integers should simply not be accounted for
          #       when inferring what next id should be.
          ids = [
              d["_id"]
              for d in self._documents
              if isinstance(d["_id"], int)
          ]
          if not ids:
              return 0
  
          return max(ids) + 1
  
      return 1
  
imports: import copy
  from collections import defaultdict
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.utils.flatten import flatten, unflatten
label_desc: Use image node_id 8 for calling the EphemeralCollection obj's underlying member method code with example usage: obj._get_new_id() and returns: int, unknown, int