from typing import Any
from typing import Generic


def _is_instance_of_generic_class(instance: Any) -> bool:
    """
        >>> class A: pass
        >>> a = A()
        >>> _is_instance_of_generic_class(a)
        False
        >>> from typing import TypeVar, Generic
        >>> T = TypeVar('T')
        >>> class B(Generic[T]): pass
        >>> b = B()
        >>> _is_instance_of_generic_class(b)
        True
        >>> b2 = B[int]()
        >>> _is_instance_of_generic_class(b2)
        True
    """
    return Generic in instance.__class__.__bases__