code: def contexts(self):
          
          if not hasattr(self, "_contexts"):
              cs = {}
              for cr in self.doc["contexts"]:
                  cs[cr["name"]] = copy.deepcopy(cr["context"])
              self._contexts = cs
          return self._contexts
docs: Returns known contexts by exposing as a read-only property.