@typed_pos_args('import', str)
@typed_kwargs('import', REQUIRED_KW.evolve(since='0.59.0'), DISABLER_KW.evolve(since='0.59.0'))
@disablerIfNotFound
def func_import(self, node: mparser.BaseNode, args: T.Tuple[str], kwargs: 'kwargs.FuncImportModule') -> T.Union[(ExtensionModule, NewExtensionModule, NotFoundExtensionModule)]:
    modname = args[0]
    (disabled, required, _) = extract_required_kwarg(kwargs, self.subproject)
    if disabled:
        return NotFoundExtensionModule()
    if modname.startswith('unstable-'):
        plainname = modname.split('-', 1)[1]
        try:
            mod = self._import_module(plainname, required)
            mlog.warning(f'Module {modname} is now stable, please use the {plainname} module instead.')
            return mod
        except InvalidArguments:
            mlog.warning(f'Module {modname} has no backwards or forwards compatibility and might not exist in future releases.', location=node)
            modname = ('unstable_' + plainname)
    return self._import_module(modname, required)
@typed_pos_args('import', str)
@typed_kwargs('import', REQUIRED_KW.evolve(since='0.59.0'), DISABLER_KW.evolve(since='0.59.0'))
@disablerIfNotFound
def func_import(self, node: mparser.BaseNode, args: T.Tuple[str], kwargs: 'kwargs.FuncImportModule') -> T.Union[(ExtensionModule, NewExtensionModule, NotFoundExtensionModule)]:
    modname = args[0]
    (disabled, required, _) = extract_required_kwarg(kwargs, self.subproject)
    if disabled:
        return NotFoundExtensionModule()
    if modname.startswith('unstable-'):
        plainname = modname.split('-', 1)[1]
        try:
            mod = self._import_module(plainname, required)
            mlog.warning(f'Module {modname} is now stable, please use the {plainname} module instead.')
            return mod
        except InvalidArguments:
            mlog.warning(f'Module {modname} has no backwards or forwards compatibility and might not exist in future releases.', location=node)
            modname = ('unstable_' + plainname)
    return self._import_module(modname, required)