def _find_new_name(old_name: str, node_names: List[str]) -> str:
    """
    Disambiguate a node's name from a list of existing node names by adding
    successively larger integers.
    """
    count = 0
    new_name = old_name + "." + str(count) if count != 0 else old_name
    while new_name in node_names:
        count += 1
        new_name = old_name + "." + str(count)
    return new_name

    Disambiguate a node's name from a list of existing node names by adding
    successively larger integers.
    
coremltools/converters/mil/frontend/torch/internal_graph.py