def __init__(self, function_that_returns_a_knitting_pattern_set):
super().__init__(self._dump_knitting_pattern,<EOL>text_is_expected=False, encoding=None)<EOL>self.__on_dump = function_that_returns_a_knitting_pattern_set<EOL>
Initialize the Dumper with a
        :paramref:`function_that_returns_a_knitting_pattern_set`.

        :param function_that_returns_a_knitting_pattern_set: a function that
          takes no arguments but returns a
          :class:`knittinpattern.KnittingPatternSet.KnittingPatternSet`

        When a dump is requested, the
        :paramref:`function_that_returns_a_knitting_pattern_set`
        is called and the knitting pattern set is converted and saved to the
        specified location.