def fit(self) -> None:
        """Fit the memory bank model to the training data.

        This method should be implemented by subclasses to define how the memory
        bank is populated with reference features/embeddings.

        Raises:
            NotImplementedError: If the subclass does not implement this method
        """
        msg = (
            f"fit method not implemented for {self.__class__.__name__}. To use a memory-bank module, implement ``fit``."
        )
        raise NotImplementedError(msg)
Fit the memory bank model to the training data.

        This method should be implemented by subclasses to define how the memory
        bank is populated with reference features/embeddings.

        Raises:
            NotImplementedError: If the subclass does not implement this method
        
src/anomalib/models/components/base/memory_bank_module.py