code: def _validate_x(self, x, z):
          
  
          if (x < 0) or (x > ((2**z) - 1)):
              raise InvalidColumnError(
                  "{} is not a valid value for x (column)".format(x)
              )
  
          return x
docs: Validates x (column), raising error if invalid.