def match_type(one, another):
    """
    Matcher which matches on type.

    :param one: dictionary A
    :param another: dictionary B
    :return: True or False.
    """
    res = True
    # this will make sure network node is mapped to network node.
    if 'type' in one and 'type' in another:
        res = one['type'] == another['type']
    return res