As part of a HashedIn by Deloitte QA automation utility, validate whether an input string reads the same forward and backward. Treat uppercase and lowercase letters as equivalent, and ignore spaces, punctuation, and other non-alphanumeric characters.
Implement a function that returns True when the normalized input is a palindrome and False otherwise. Explain the test cases you would use, including normal inputs and boundary conditions.
text, a string containing printable characters.True if the sequence of alphanumeric characters is identical from left to right and right to left; otherwise return False.def is_palindrome(text):