code: def split_fqn(fqn):
      
      if hasattr(fqn, '__call__'):
          fqn_string = fqn()
      else:
          fqn_string = fqn
      return fqn_string.rsplit('.', 1)
docs: 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.