code: def GetOutputClass(cls, name):
      
      if not isinstance(name, py2to3.STRING_TYPES):
        raise ValueError('Name attribute is not a string.')
  
      name = name.lower()
      if name not in cls._output_classes:
        raise KeyError(
            'Name: [{0:s}] not registered as an output module.'.format(name))
  
      return cls._output_classes[name]
docs: Retrieves the output class for a specific name.
  
      Args:
        name (str): name of the output module.
  
      Returns:
        type: output module class.
  
      Raises:
        KeyError: if there is no output class found with the supplied name.
        ValueError: if name is not a string.