code: def wrap_constant(self, val):
          
          from .queries import QueryBuilder
  
          if isinstance(val, (Term, QueryBuilder, Interval)):
              return val
          if val is None:
              return NullValue()
          if isinstance(val, list):
              return Array(*val)
          if isinstance(val, tuple):
              return Tuple(*val)
  
          _ValueWrapper = getattr(self, '_wrapper_cls', ValueWrapper)
          return _ValueWrapper(val)
docs: Used for wrapping raw inputs such as numbers in Criterions and Operator.
  
          For example, the expression F('abc')+1 stores the integer part in a ValueWrapper object.
  
          :param val:
              Any value.
          :return:
              Raw string, number, or decimal values will be returned in a ValueWrapper.  Fields and other parts of the
              querybuilder will be returned as inputted.