class_docstr: Adapts a user-defined InstrumentationManager to a ClassManager.
class_docstr_tok: ["Adapts","a","user-defined","InstrumentationManager","to","a","ClassManager","."]
docstr: Install a default InstanceState if none is present.
  
  A private convenience method used by the __init__ decorator.
docstr_tok: ["Install","a","default","InstanceState","if","none","is","present",".","A","private","convenience","method","used","by","the","__init__","decorator","."]
code: def _new_state_if_none(self, instance):
      """Install a default InstanceState if none is present.
  
      A private convenience method used by the __init__ decorator.
      """
      if self.has_state(instance):
          return False
      else:
          return self.setup_instance(instance)
  
imports: import weakref
  from ..None import util
  from ..orm import attributes
  from ..orm import base
  from ..orm import collections
  from ..orm import exc
  from ..orm import instrumentation
  from ..orm import util
  from ..orm.instrumentation import _default_dict_getter
  from ..orm.instrumentation import _default_manager_getter
  from ..orm.instrumentation import _default_opt_manager_getter
  from ..orm.instrumentation import _default_state_getter
  from ..orm.instrumentation import ClassManager
  from ..orm.instrumentation import InstrumentationFactory
label_desc: Use image node_id 14 for calling the _ClassInstrumentationAdapter obj's underlying member method code with example usage: obj._new_state_if_none(instance) and returns: False, self