code: def validate_distribution_range(f):
      @wraps(f)
      def wrapper(label, *args, **kwargs):
          min_val = (
              args[0]
              if len(args) > 0
              else (kwargs["low"] if "low" in kwargs else None)
          )
          max_val = (
              args[1]
              if len(args) > 1
              else (kwargs["high"] if "high" in kwargs else None)
          )
          if min_val and max_val and not min_val < max_val:
              raise ValueError(
                  "low should be less than high: %s is not smaller than %s"
                  % (min_val, max_val)
              )
          return f(label, *args, **kwargs)
  
      return wrapper
  
imports: from functools import partial, wraps
  from .base import DuplicateLabel
  from .pyll.base import Apply, Literal, MissingArgument
  from .pyll import scope
  from .pyll import as_apply
label_desc: Use image node_id 2 for calling a global function with example usage: validate_distribution_range(f) and returns: wrapper, f