code: def cluster():
      dask_cluster = LocalCluster(
          n_workers=2, threads_per_worker=2, dashboard_address=None
      )
      yield dask_cluster
      dask_cluster.close()
  
imports: import inspect
  import random
  import socket
  from itertools import groupby
  from os import getenv
  from platform import machine
  from sys import platform
  from urllib.parse import urlparse
  import pytest
  from sklearn.metrics import accuracy_score, r2_score
  import lightgbm
  from .utils import sklearn_multiclass_custom_objective
  import dask.array
  import dask.dataframe
  import numpy
  import pandas
  import sklearn.utils.estimator_checks
  from dask.array.utils import assert_eq
  from dask.distributed import Client, LocalCluster, default_client, wait
  from scipy.sparse import csc_matrix, csr_matrix
  from scipy.stats import spearmanr
  from sklearn.datasets import make_blobs, make_regression
  from .utils import make_ranking, pickle_obj, unpickle_obj
label_desc: Use image node_id 1 for calling a global function with example usage: cluster() without return types