code: def data(self, namespace):
          
          assert namespace
  
          if namespace in self._data:
              return self._data[namespace]
  
          new_data = {}
          self._data[namespace] = new_data
          return new_data
docs: Gets the thread.local data (dict) for a given namespace.
  
          Args:
              namespace (string): The namespace, or key, of the data dict.
  
          Returns:
              (dict)