def decide_callable_or_boolean(value):
        """
        Decide whether a key function is used.
        """
        if callable(value):
            value, key = True, value
        else:
            key = None
        return value, key

        Decide whether a key function is used.
        
product/gradle-plugin/src/main/python/attr/_make.py