Node.ensure_name()

Node.ensure_name()#

Node.ensure_name()[source]#

Ensures that the node has a name.

If the node already has a name, nothing happens. Otherwise, a unique random name is generated with a leading underscore.

Return type:

Self