def as_tuple(self, value):
            """Utility function which converts lists to tuples."""
            if isinstance(value, list):
                value = tuple(value)
            return value
Utility function which converts lists to tuples.
product/gradle-plugin/src/main/python/pip/_vendor/distlib/compat.py