def uses_simple_values(holder, fld):
    from lino.core.gfks import is_foreignkey
    if is_foreignkey(fld):
        return False
    if holder is not None:
        ch = holder.get_chooser_for_field(fld.name)
        if ch is not None:
            return ch.simple_values
    choices = list(fld.choices)
    if len(choices) == 0:
        return True
    if type(choices[0]) in (list, tuple):
        return False
    return True
Return ndarray normalized by length, i.e. eucledian norm, along axis.
dataset/ETHPy150Open lsaffre/lino/lino/utils/choosers.py/uses_simple_values--crossover with--dataset/ETHPy150Open omangin/multimodal/multimodal/lib/transformations.py/unit_vector