def is_vm(obj):
    """
    Checks if object is a vim.VirtualMachine.

    :param obj: The object to check
    :return: If the object is a VM
    :rtype: bool
    """
    return hasattr(obj, "summary")