class_docstr: Validator class that can dynamically returns any Validator.
  
  :param get_validator: Callable that returns a :class:`.Validator` instance.
class_docstr_tok: ["Validator","class","that","can","dynamically","returns","any","Validator",".",":","param","get_validator",":","Callable","that","returns","a",":","class",":","`",".Validator","`","instance","."]
code: def __init__(
      self, get_validator: Callable[[], Validator | None]
  ) -> None:
      self.get_validator = get_validator
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import Callable
  from prompt_toolkit.eventloop import run_in_executor_with_context
  from .document import Document
  from .filters import FilterOrBool, to_filter
label_desc: Use image node_id 1 to create a new DynamicValidator object from inherited base classes: Validator with example: obj = DynamicValidator(get_validator)