def model_query_helper(model, query):
    """
    Accepts model (full json) and a node type (str) to query.
    Returns properties for given node type. Raises error not found if not present.
    """
    parsed_data = {'query': query}
    mod_types = [t for t in model['types'].keys()]
    mod_forms = [f for f in model['forms'].keys()]

    if (query not in mod_types) and (query not in mod_forms):
        raise Exception(f'Error: Query "{query}" not found in model. Try adjusting syntax (i.e. "inet:ipv4").')

    parsed_data['type'] = model['types'].get(query)

    if query in mod_forms:
        parsed_data['form'] = model['forms'].get(query)

    return parsed_data