<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def in_string(objet, pattern):
 """ abstractSearch dans une chaine, sans tenir compte de la casse. """

        return bool(re.search(pattern, str(objet), flags=re.I)) if objet else False