from typing import Any


def islocal(obj: Any) -> bool:
    """Check if the object is on the local machine (in Duet or VM)

    :return: True if yes, else False
    :rtype: bool
    """
    party_type = obj.client.class_name
    return party_type in {"VirtualMachineClient", "DomainClient"}