code: def registered_capabilities(self):
          
          return dict ([ (CAPABILITIES[c.id],c) for c in self.capabilities
                   if c.id in CAPABILITIES ])
docs: Return dictionary of non-YANG capabilities.
  
          Only capabilities from the `CAPABILITIES` dictionary are taken
          into account.