def _get_thread_local_object(self):
    if (not hasattr(_thread_local, 'instance_key')):
        _thread_local.instance_key = self._instance_key_start
    return _thread_local
def _get_thread_local_object(self):
    if (not hasattr(_thread_local, 'instance_key')):
        _thread_local.instance_key = self._instance_key_start
    return _thread_local