def get_mod_func(callback):
    dot = callback.rfind('.')
    if dot == -1:
        return callback, ''
    return callback[:dot], callback[dot + 1:]
splits the string path to a class into a string path to the module
dataset/ETHPy150Open sympy/sympy/sympy/utilities/source.py/get_mod_func