code: def __init__(
      self,
      vocab: Vocab,
      model: Optional[Model],
      name: str = "lemmatizer",
      *,
      mode: str = "pymorphy3",
      overwrite: bool = False,
      scorer: Optional[Callable] = lemmatizer_score,
  ) -> None:
      if mode in {"pymorphy2", "pymorphy2_lookup"}:
          try:
              from pymorphy2 import MorphAnalyzer
          except ImportError:
              raise ImportError(
                  "The lemmatizer mode 'pymorphy2' requires the "
                  "pymorphy2 library and dictionaries. Install them with: "
                  "pip install pymorphy2"
                  "# for Ukrainian dictionaries:"
                  "pip install pymorphy2-dicts-uk"
              ) from None
          if getattr(self, "_morph", None) is None:
              self._morph = MorphAnalyzer(lang="ru")
      elif mode in {"pymorphy3", "pymorphy3_lookup"}:
          try:
              from pymorphy3 import MorphAnalyzer
          except ImportError:
              raise ImportError(
                  "The lemmatizer mode 'pymorphy3' requires the "
                  "pymorphy3 library and dictionaries. Install them with: "
                  "pip install pymorphy3"
                  "# for Ukrainian dictionaries:"
                  "pip install pymorphy3-dicts-uk"
              ) from None
          if getattr(self, "_morph", None) is None:
              self._morph = MorphAnalyzer(lang="ru")
      super().__init__(
          vocab,
          model,
          name,
          mode=mode,
          overwrite=overwrite,
          scorer=scorer,
      )
  
file_path: spacy/spacy/lang/ru/lemmatizer.py
imports: from typing import Callable, Dict, List, Optional, Tuple
  from thinc.api import Model
  from ...pipeline import Lemmatizer
  from ...pipeline.lemmatizer import lemmatizer_score
  from ...symbols import POS
  from ...tokens import Token
  from ...vocab import Vocab
label_desc: Use image node_id 1 to create a new RussianLemmatizer object from inherited base classes: Lemmatizer with example: obj = RussianLemmatizer(vocab, model, name)