code: def is_prettytable(string):
      
      return type(string).__name__ in {'str','unicode'} and (
          len(string.splitlines()) > 1
      ) and (
          all(string[i] == string[-i-1] for i in range(3))
      )
docs: returns true if the input looks like a prettytable