'How to check whether a set is available in itemsets created by FPgrowth algorithm?

I have set of items and its support obtained using fpgrowth algorithm as given below

fpgrowth=

enter image description here

I have another sequence of items (1,4,2,5,31). I need to find any of its subset[(1,31),(4,31),(1,4,31)...] available in the fpgrowth, obtain its support value.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source