def METHOD_NAME(self, representation: BaseRepresentation, sample_data) -> None:
    """
    Test case for representation classes.
    Args:
        representation (Type[Representation]): The representation class to be tested.
        sample_data (List]): A list containing sample instances.
    Returns:
        None
    Raises:
        AssertionError: If the transformation or the final result is invalid.
    """
    for alias in representation.alias_name:
        for task in representation.supported_tasks:
            transform_results = representation.transform(
                alias, sample_data[task], self.representation_config[alias]
            )
            assert isinstance(transform_results, list)
            for sample, result in zip(sample_data, transform_results):
                assert isinstance(result, MinScoreQASample) or isinstance(
                    result, MinScoreSample
                )