code: def test_jupyter_cli(loop):
      port = open_port()
      with popen(
          [
              "dask",
              "scheduler",
              "--jupyter",
              "--no-dashboard",
              "--host",
              f"127.0.0.1:{port}",
          ],
          capture_output=True,
      ):
          with Client(f"127.0.0.1:{port}", loop=loop):
              response = requests.get(
                  "http://127.0.0.1:8787/jupyter/api/status"
              )
              assert response.status_code == 200
  
file_path: distributed/distributed/tests/test_jupyter.py
imports: from __future__ import annotations
  import asyncio
  import concurrent.futures
  import subprocess
  from datetime import datetime, timedelta, timezone
  from time import perf_counter
  import pytest
  from tornado.httpclient import AsyncHTTPClient
  from distributed import Client, Scheduler
  from distributed.core import Status
  from distributed.utils import open_port
  from distributed.utils_test import gen_test, popen
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: test_jupyter_cli(loop) without return types