code: def validate(self, name: str, obj):
      if not isinstance(obj, int) and not isinstance(obj, float):
          raise ValidationError(f"{name} is not numeric")
      for text, condition in self.conditions.items():
          if not condition(obj):
              raise ValidationError(
                  f"{name} does not satisfy the condition {text}"
              )
  
imports: from typing import Union, Dict, Pattern, Callable, Any, List, Optional
  import re
  import logging
label_desc: Use image node_id 2 for calling the NumericValidator obj's underlying member method code with example usage: obj.validate(name, obj) without return types