def context(name=None):
def _context(cls):<EOL><INDENT>annotated(cls, name)<EOL>cls.context = True<EOL>return cls<EOL><DEDENT>return _context<EOL>
Declare that a class defines a context.

    Contexts are for use with HierarchicalShell for discovering
    and using functionality from the command line.

    Args:
        name (str): Optional name for this context if you don't want
            to just use the class name.