def test_output_formatting_func(sample: Any) -> list:
            """
            Test if the formatting function returns the expected format.
            """
            try:
                if isinstance(sample, list):
                    return [self._formatting_func_return_types(format=entry).format for entry in sample]
                else:
                    return [self._formatting_func_return_types(format=sample).format]
            except Exception:
                raise ValueError(
                    f"formatting_func must return {self._formatting_func_return_types.__annotations__['format']}, not {type(sample)}"
                )

            Test if the formatting function returns the expected format.
            
argilla-v1/src/argilla_v1/client/feedback/training/schemas/base.py