def provider(module):
    func = ''
    for key in __salt__:
        if not key.startswith('{0}.'.format(module)):
            continue
        func = key
        break
    if not func:
        return ''
    pfn = sys.modules[__salt__[func].__module__].__file__
    pfn = os.path.basename(pfn)
    return pfn[:pfn.rindex('.')]
Pass in a function name to discover what provider is being used
dataset/ETHPy150Open saltstack/salt/salt/modules/test.py/provider