def context(self, name):
data = self._context(name)<EOL>context = data.get("<STR_LIT>")<EOL>if context:<EOL><INDENT>return context<EOL><DEDENT>assert self.load_path<EOL>context_path = os.path.join(self.load_path, "<STR_LIT>", "<STR_LIT>" % name)<EOL>context = ResolvedContext.load(context_path)<EOL>data["<STR_LIT>"] = context<EOL>data["<STR_LIT>"] = True<EOL>return context<EOL>
Get a context.

        Args:
            name (str): Name to store the context under.

        Returns:
            `ResolvedContext` object.