<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __if_not_basestring(text_object):
 """Convert to str"""

    converted_str = text_object
    if not isinstance(text_object, str):
        converted_str = str(text_object)
    return converted_str