Here is an example for Python.
function:
def is_text_present (self, string):
if str(string) in self.driver.page_source: return True
else: return False
verifyTextPresent:
try: self.assertTrue(self.is_text_present (“some string”))
except AssertionError as e: self.verificationErrors.append(str(e))
Code Contributor: Alexander

Hi pavan ,
Could you share your mailid , so that I can mail my query ?
have a question in regard to python function
Regards
Reena