code: def getbyname(self, name):
          
          if name not in self._schbyname:
              raise KeyError('name {0} not registered'.format(name))
  
          return self._schbyname[name]
docs: Get schemas by given name.
  
          :param str name: schema names to retrieve.
          :rtype: list
          :raises: KeyError if name is not registered already.