code: def test_exception(loop):
      class MyException(Exception):
          pass
  
      class Broken:
          def method(self):
              raise MyException
  
          @property
          def prop(self):
              raise MyException
  
      with cluster(nworkers=2) as (cl, w), Client(
          cl["address"], loop=loop
      ) as client:
          ac = client.submit(Broken, actor=True).result()
          acfut = ac.method()
          with pytest.raises(MyException):
              acfut.result()
  
          with pytest.raises(MyException):
              ac.prop
  
imports: from __future__ import annotations
  import asyncio
  import operator
  from time import sleep
  import pytest
  import dask
  from distributed import Actor, BaseActorFuture, Client, Future, Nanny, as_completed, get_client, wait, worker_client
  from distributed.metrics import time
  from distributed.utils import LateLoopEvent
  from distributed.utils_test import cluster, double, gen_cluster, inc
  from distributed.worker import get_worker
label_desc: Use image node_id 9 for calling a global function with example usage: test_exception(loop) without return types