class_docstr: 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: str,
      pattern_factory: Callable[[AnyStr], Pattern],
  ) -> None:
      """
      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 pathlib
  import posixpath
  import stat
  import sys
  import warnings
  from collections.abc import Collection, Iterable
  from dataclasses import dataclass
  from os import PathLike
  from typing import Any, AnyStr, Callable, Collection, Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Set, Tuple, TypeVar, Union
  from .pattern import Pattern
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)