I have a Transformer feature in a Geometric Network which has a field called `PhaseDesig` and it has five types of unique attributes [0, 1, 2,4,7] like this image
I used this code to generate Geometric Network
arcpy<SPAN class="punctuation token">.</SPAN>CreateGeometricNetwork_management<SPAN class="punctuation token">(</SPAN>Electric<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Electric_Net"</SPAN><SPAN class="punctuation token">,</SPAN>
"Power SIMPLE_JUNCTION YES<SPAN class="punctuation token">;</SPAN>\
Fuses SIMPLE_JUNCTION NO<SPAN class="punctuation token">;</SPAN> \
Transformer SIMPLE_JUNCTION NO<SPAN class="punctuation token">;</SPAN> \
Conductor SIMPLE_EDGE NO<SPAN class="punctuation token">;</SPAN>"<SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"0.5"</SPAN><SPAN class="punctuation token">,</SPAN>
"PhaseDesig Bitgate <SPAN class="comment token">#",</SPAN>
"Transformer PhaseDesig PhaseDesig<SPAN class="punctuation token">;</SPAN> \
Fuses PhaseDesig PhaseDesig"<SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"PRESERVE_ENABLED"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>