(node_name)
return node_name.replace(":", "__port__").replace("^", "__hat__")
Replaces invalid characters in input names to get a unique node name.
Replaces invalid characters in input names to get a unique node name.
Replaces invalid characters in input names to get a unique node name .
def unique_node_name_from_input(node_name):
  """Replaces invalid characters in input names to get a unique node name."""
  return node_name.replace(":", "__port__").replace("^", "__hat__")
def unique_node_name_from_input ( node_name ) : return node_name . replace ( ":" , "__port__" ) . replace ( "^" , "__hat__" )