    def punctuation(cls) -> Callable:
        """
        This returns a function which adds/removes punctuations in relevant
        `str` inputs of a task's inputs. For instance, "isn't" will be
        changed to "is not", and "will not" will be changed to "won't".

        Expected arguments for this function: `(example, **args, **kwargs)`
        where the `example` is an instance of some task. It can be of any
        type.

        For example, for a sentiment analysis task, it will be a
        a `str` (the sentence for which we want to predict the sentiment).
        For a textual entailment task, it can be a tuple or a Dict, etc.

        Expected output of this function is a list of instances for the task,
        of the same type as `example`.
        """
        return utils.toggle_punctuation
This returns a function which adds/removes punctuations in relevant
`str` inputs of a task's inputs. For instance, "isn't" will be
changed to "is not", and "will not" will be changed to "won't".

Expected arguments for this function: `(example, **args, **kwargs)`
where the `example` is an instance of some task. It can be of any
type.

For example, for a sentiment analysis task, it will be a
a `str` (the sentence for which we want to predict the sentiment).
For a textual entailment task, it can be a tuple or a Dict, etc.

Expected output of this function is a list of instances for the task,
of the same type as `example`.
allennlp/confidence_checks/task_checklists/task_suite.py