code: def validate_numeric_metadata_filter_bounds(
      cls: "BaseModel", values: Dict[str, Any]
  ) -> Dict[str, Any]:
      name = values.get("name")
      le = values.get("le")
      ge = values.get("ge")
  
      if le is None and ge is None:
          raise ValueError(
              f"`{cls.__name__}` with name={name} must have at least one of `le` or `ge`"
          )
  
      if le is not None and ge is not None and le < ge:
          raise ValueError(
              f"`{cls.__name__}` with name={name} cannot have `le` less than `ge`"
          )
  
      return values
  
imports: from typing import TYPE_CHECKING, Any, Dict, Optional
label_desc: Use image node_id 3 for calling a global function with example usage: validate_numeric_metadata_filter_bounds(cls, values) and returns: values