def from_iterable(
        cls: Type[T],
        iterable: Iterable[Array],
    ) -> T:
        """
        Transform an iterable into a concrete instance of a subclass of
        :class:`~fortuna.data.loader.BaseTargetsLoader`.

        Parameters
        ----------
        iterable: Iterable[Array]
            An iterable of target arrays.

        Returns
        -------
        T
           A concrete instance of a subclass of :class:`~fortuna.data.loader.BaseTargetsLoader`.
        """
        return cls(iterable=IterableData.from_iterable(iterable))

        Transform an iterable into a concrete instance of a subclass of
        :class:`~fortuna.data.loader.BaseTargetsLoader`.

        Parameters
        ----------
        iterable: Iterable[Array]
            An iterable of target arrays.

        Returns
        -------
        T
           A concrete instance of a subclass of :class:`~fortuna.data.loader.BaseTargetsLoader`.
        
fortuna/data/loader/base.py