code: def _get_local_dict(self):
          
          try:
              return getattr(THREAD_STORE, self.namespace)
          except AttributeError:
              local_var = dict(*self.args, **self.kwargs)
              setattr(THREAD_STORE, self.namespace, local_var)
              return local_var
docs: Retrieve (or initialize) the thread-local data to use.