<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def one_of(self, items):
 """ Check if the value is contained in a list or generator. :param items: The list of items to check with """

        return self._generate_test(
            lambda value: value in items,
            ('one_of', self._path, freeze(items))
        )