def is_list_of_states(self, arg):
        return isinstance(arg, list) and all(isinstance(i, tuple) for i in arg)
A list of states example -
dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/utils/state_name.py/StateNameDecorator.is_list_of_states