def simplify_whitespace(name):
    if name:
        return ' '.join(name.split())
    return name
Adds the field paths descended from node to field_mask.
dataset/ETHPy150Open edgewall/trac/trac/ticket/model.py/simplify_whitespace--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/net/proto2/python/internal/well_known_types.py/_AddFieldPaths