code: def logical_repr(self, value):
          
          if not any(isinstance(value, t) for t in (list, tuple)):
              raise TypeError("Logical representation must be a tuple with "
                              "a valid true and false value.")
          if not len(value) == 2:
              raise ValueError("List must contain two values.")
  
          self.false_repr = value[0]
          self.true_repr = value[1]
docs: Set the string representation of logical values.