def import_models(module):
    """
    | Given a module `service`, try to import its models module.

    :param module: The module's name to import the models.
    :type module: str
    :rtype: list
    :returns: all the models defined.
    """
    try:
        module = importlib.import_module('{0}.models'.format(module))
    except ImportError:
        return []
    else:
        clsmembers = inspect.getmembers(module, lambda member: inspect.isclass(member) and member.__module__ == module.__name__)
        return [kls for name, kls in clsmembers]
| Given a module `service`, try to import its models module.

    :param module: The module's name to import the models.
    :type module: str
    :rtype: list
    :returns: all the models defined.