@classmethod
def is_imported(cls, importer):
    """Check whether the import was triggered.

        This inspection is a save and doesn't trigger the import.

        Parameters
        ----------
        importer : LazyImport
            The object to check.

        Returns
        -------
        flag : bool
            True if the import was triggered, else false.

        Examples
        --------
        >>> from ptvpy._cli_utils import LazyImport
        >>> math = LazyImport("math")
        >>> LazyImport.is_imported(math)
        False
        >>> math.__name__
        'math'
        >>> LazyImport.is_imported(math)
        True
        """
    if not isinstance(importer, cls):
        raise TypeError(f'must be of type {cls}, was {type(importer)}')
    return 'module' in object.__getattribute__(importer, '__dict__')
