def METHOD_NAME(mutation):
    from caluma.caluma_core.mutation import Mutation
    if not issubclass(mutation, Mutation):
        valid_subclasses = [
            _full_class_name(cls) for cls in _collect_subclasses(Mutation)
        ]
        raise ImproperlyConfigured(
            f"Mutation {_full_class_name(mutation)} is not a recognized mutation. "
            f"Valid mutations are: {', '.join(valid_subclasses)}"
        )