def __get__(
        self,
        instance: object,
        object_type: type | None = None,
    ) -> list[torch.Tensor]:
        """Get the list of tensors.

        Retrieves the list of tensors stored as individual buffers with names
        ``_name_i`` where ``i`` is the index.

        Args:
            instance (object):
                Instance of the class.
            object_type (type | None, optional):
                Type of the class. Defaults to ``None``.

        Returns:
            list[torch.Tensor]:
                List of tensor buffers.
        """
        del object_type
        return [getattr(instance, f"_{self.name}_{i}") for i in range(self.length)]
Get the list of tensors.

        Retrieves the list of tensors stored as individual buffers with names
        ``_name_i`` where ``i`` is the index.

        Args:
            instance (object):
                Instance of the class.
            object_type (type | None, optional):
                Type of the class. Defaults to ``None``.

        Returns:
            list[torch.Tensor]:
                List of tensor buffers.
        
src/anomalib/models/components/base/buffer_list.py