code: def lower_case(f):
      
      # if it has already been wrapped, we return original
      if hasattr(f, "lower_cased"):
          return f
  
      @wraps(f)
      def wrapper(*args, **kwargs):
          f.lower_cased = True
          return f(*args, **kwargs).lower()
  
      return wrapper
docs: Decorator specifically for turning mssql AST into lowercase