code: def init_context(
      useProgressBar: bool = False,
      config_options={
          "ENABLE_GENERAL_ENGINE_LOGS": True,
          "ENABLE_COMMS_LOGS": True,
          "ENABLE_TASK_LOGS": True,
          "ENABLE_OTHER_ENGINE_LOGS": True,
      },
  ):
      bc = None
      dask_client = None
      nRals = int(Settings.data["RunSettings"]["nRals"])
      nGpus = int(Settings.data["RunSettings"]["nGPUs"])
      if nRals == 1:
          bc = BlazingContext(
              config_options=config_options, enable_progress_bar=True
          )
      else:
          os.chdir(Settings.data["TestSettings"]["logDirectory"])
          iface = Settings.data["RunSettings"]["networkInterface"]
          dask_client = try_to_get_dask_client(nRals, nGpus, iface)
          if dask_client is not None:
              dask_conn = Settings.data["TestSettings"][
                  "daskConnection"
              ]
  
              # print("Using dask: " + dask_conn)
              # if "local" != dask_conn:
  
              bc = BlazingContext(
                  dask_client=dask_client,
                  network_interface=iface,
                  # pool=True,
                  # initial_pool_size=300000000,
                  allocator="default",
                  config_options=config_options,
                  enable_progress_bar=True,
              )
          else:
              # Fallback: could not found a valid dask server
              bc = BlazingContext(
                  config_options=config_options,
                  enable_progress_bar=True,
              )
  
      return (bc, dask_client)
  
imports: import copy
  import os
  from blazingsql import BlazingContext, DataType
  from dask.distributed import Client
  from dask_cuda import LocalCUDACluster
  from dask_cuda.utils import CPUAffinity, get_cpu_affinity
  from Configuration import ExecutionMode
  from Configuration import Settings
  from DataBase import createSchema
label_desc: Use image node_id 5 for calling a global function with example usage: init_context(useProgressBar, config_options) and returns: bc,  dask_client