def split_fqn(fqn):
if hasattr(fqn, '<STR_LIT>'):<EOL><INDENT>fqn_string = fqn()<EOL><DEDENT>else:<EOL><INDENT>fqn_string = fqn<EOL><DEDENT>return fqn_string.rsplit('<STR_LIT:.>', <NUM_LIT:1>)<EOL>
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.