def lazy_isinstance(instance, module, name):
    """Use string representation to identify a type."""
    module = type(instance).__module__ == module
    name = type(instance).__name__ == name
    return module and name
