def split_fqn(fqn):
    if hasattr(fqn, '__call__'):
        fqn_string = fqn()
    else:
        fqn_string = fqn
    return fqn_string.rsplit('.', 1)
Returns the left and right part of the import.
dataset/ETHPy150Open bitmazk/django-libs/django_libs/loaders.py/split_fqn