="sd">        To check the presence of item or pattern in transaction</span>
<span class="sd">        :param x: it represents the pattern</span>
<span class="sd">        :type x : list</span>
<span class="sd">        :param i : represents the uncertain self.Database</span>
<span class="sd">        :type i : list</span>
<span class="sd">        &quot;&quot;&quot;</span>

        <span class="c1"># This method taken a transaction as input and returns the tree</span>
        <span class="k">for</span> <span cl