from typing import Dict


def is_design(obj):
    """
    Check if an object is a Metal Design, i.e., an instance of `QDesign`.

    The problem is that the `isinstance` built-in method fails
    when this module is reloaded.

    Args:
        obj (object): Test this object

    Returns:
        bool (bool): True if is a Metal design
    """
    if isinstance(obj, Dict):
        return False

    return hasattr(obj, '__i_am_design__')