def _get_class_name(self) -> str:
        """Get the class name used in the prompt ensemble.

        The class name is determined in the following order:
        1. Use class name provided in initialization
        2. Use category name from datamodule if available
        3. Use default value "object"

        Returns:
            str: Class name to use in prompts
        """
        if self.class_name is not None:
            logger.info("Using class name from init args: %s", self.class_name)
            return self.class_name
        if getattr(self, "_trainer", None) and hasattr(self.trainer.datamodule, "category"):
            logger.info("No class name provided, using category from datamodule: %s", self.trainer.datamodule.category)
            return self.trainer.datamodule.category
        logger.info("No class name provided and no category name found in datamodule using default: object")
        return "object"
Get the class name used in the prompt ensemble.

        The class name is determined in the following order:
        1. Use class name provided in initialization
        2. Use category name from datamodule if available
        3. Use default value "object"

        Returns:
            str: Class name to use in prompts
        
src/anomalib/models/image/winclip/lightning_model.py