def deprecatedModuleAttribute(version, message, moduleName, name):
    module = sys.modules[moduleName]
    if not isinstance(module, _ModuleProxy):
        module = _ModuleProxy(module)
        sys.modules[moduleName] = module

    _deprecateAttribute(module, name, version, message)
Declare a module-level attribute as being deprecated.
dataset/ETHPy150Open bokeh/bokeh/bokeh/util/deprecate.py/deprecatedModuleAttribute