<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def split_fqn(fqn):
 """ Returns the left and right part of the import. ``fqn`` can be either a string of the form ``appname.modulename.ClassName`` or a function that returns such a string. """

    if hasattr(fqn, '__call__'):
        fqn_string = fqn()
    else:
        fqn_string = fqn
    return fqn_string.rsplit('.', 1)