@staticmethod
def import_models(name: str, package: str, mandatory: bool=False) -> Dict[(str, Type[Any])]:
    if (package == BACKEND_PACKAGE):
        module_name = f'{package}.connectors.{name}.models'
    else:
        module_name = f'{package}.models.{name}'
    try:
        module = Meta.get_module_from_string(module_name, exit_on_fail=True)
    except Exception as e:
        module = None
        if mandatory:
            log.critical(e)
    if (not module):
        if mandatory:
            print_and_exit('Cannot load {} models from {}', name, module_name)
        return {}
    return Meta.get_new_classes_from_module(module)
@staticmethod
def import_models(name: str, package: str, mandatory: bool=False) -> Dict[(str, Type[Any])]:
    if (package == BACKEND_PACKAGE):
        module_name = f'{package}.connectors.{name}.models'
    else:
        module_name = f'{package}.models.{name}'
    try:
        module = Meta.get_module_from_string(module_name, exit_on_fail=True)
    except Exception as e:
        module = None
        if mandatory:
            log.critical(e)
    if (not module):
        if mandatory:
            print_and_exit('Cannot load {} models from {}', name, module_name)
        return {}
    return Meta.get_new_classes_from_module(module)