class_docstr: The :exc:`AlreadyRegisteredError` exception is raised when a pattern
  factory is registered under a name already in use.
class_docstr_tok: ["The",":","exc",":","`","AlreadyRegisteredError","`","exception","is","raised","when","a","pattern","factory","is","registered","under","a","name","already","in","use","."]
docstr: Initializes the :exc:`AlreadyRegisteredError` instance.
  
  *name* (:class:`str`) is the name of the registered pattern.
  
  *pattern_factory* (:class:`~collections.abc.Callable`) is the
  registered pattern factory.
docstr_tok: ["Initializes","the",":","exc",":","`","AlreadyRegisteredError","`","instance",".","*","name","*","(",":","class",":","`","str","`",")","is","the","name","of","the","registered","pattern",".","*","pattern_factory","*","(",":","class",":","`","~collections.abc.Callable","`",")","is","the","registered","pattern","factory","."]
code: def __init__(self, name, pattern_factory):
      """
      Initializes the :exc:`AlreadyRegisteredError` instance.
  
      *name* (:class:`str`) is the name of the registered pattern.
  
      *pattern_factory* (:class:`~collections.abc.Callable`) is the
      registered pattern factory.
      """
      super(AlreadyRegisteredError, self).__init__(
          name, pattern_factory
      )
  
imports: import os
  import os.path
  import posixpath
  import stat
  from .compat import Collection, Iterable, string_types, unicode
label_desc: Use image node_id 1 to create a new AlreadyRegisteredError object from inherited base classes: Exception with example: obj = AlreadyRegisteredError(name, pattern_factory)