from typing import Callable


def is_hiqed(fun: Callable, fun_name: str) -> bool:
    """check if this function has been registered in HiQ system

    The function could be one of:

        full_qualified_name="<method 'read' of '_io.TextIOWrapper' objects>", fun_name='read'

        full_qualified_name='<function main at 0x7f7f2eaf6040>', fun_name='main'

        full_qualified_name='<built-in function read>', fun_name='read'

    Args:
        fun (Callable): original function
        fun_name (str): function name

    Returns:
        bool: is this function has been registered in HiQ
    """
    full_qualified_name = str(fun)
    # print(f"🐵 {full_qualified_name=}, {fun_name=}")
    return (
        f"{fun_name} at" not in full_qualified_name
        and f"<method '{fun_name}' of" not in full_qualified_name
        and not full_qualified_name.startswith("<built-in function")
    )