code: def validate_numeric_metadata_property_bounds(
      cls: "BaseModel", values: Dict[str, Any]
  ) -> Dict[str, Any]:
      name = values.get("name")
      min = values.get("min")
      max = values.get("max")
  
      if min is not None and max is not None and min >= max:
          raise ValueError(
              f"`{cls.__name__}` with name={name} cannot have `max` less or equal than `min`"
          )
  
      return values
  
imports: from typing import TYPE_CHECKING, Any, Dict, Optional
label_desc: Use image node_id 2 for calling a global function with example usage: validate_numeric_metadata_property_bounds(cls, values) and returns: values