ython notranslate"><div class="highlight"><pre><span></span><span class="gp">In [4]: </span><span class="n">states</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;state_1&#39;</span><span class="p">,</span> <span class="s1">&#39;state_2&#39;</span><span class="p">]</span>

<span class="gp">In [5]: </span><span class="k">def</span> <span class="nf">identity_transition</span><span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">target</span