code: def test_basic_no_loop(cleanup):
      loop = None
      try:
          with LocalCluster(
              n_workers=0,
              silence_logs=False,
              dashboard_address=":0",
              loop=None,
          ) as cluster:
              with Client(cluster) as client:
                  cluster.adapt()
                  future = client.submit(lambda x: x + 1, 1)
                  assert future.result() == 2
              loop = cluster.loop
      finally:
          assert loop is None or not loop.asyncio_loop.is_running()
  
file_path: distributed/distributed/deploy/tests/test_adaptive.py
imports: from __future__ import annotations
  import asyncio
  import math
  from time import sleep
  import pytest
  import dask
  from distributed import Adaptive, Client, LocalCluster, Scheduler, SpecCluster, Worker, wait
  from distributed.metrics import time
  from distributed.utils_test import async_poll_for, gen_cluster, gen_test, slowinc
label_desc: Use image node_id 2 for calling a global function with example usage: test_basic_no_loop(cleanup) without return types