code: def mg_handler():
      """
      Creates a cugraph_service handler that uses a dask client.
      """
      from cugraph_service_server.cugraph_handler import CugraphHandler
  
      handler = CugraphHandler()
      dask_scheduler_file = os.environ.get("SCHEDULER_FILE")
  
      if dask_scheduler_file is None:
          handler.initialize_dask_client()
  
      else:
          dask_scheduler_file = Path(dask_scheduler_file)
          if not dask_scheduler_file.exists():
              raise FileNotFoundError(
                  "env var SCHEDULER_FILE is set to "
                  f"{dask_scheduler_file}, which does not "
                  "exist."
              )
  
          handler.initialize_dask_client(dask_scheduler_file)
  
      return handler
  
file_path: cugraph/python/cugraph-service/tests/test_mg_cugraph_handler.py
imports: import os
  from pathlib import Path
  import pickle
  import pytest
  from .None import data
label_desc: Use image node_id 1 for calling a global function with example usage: mg_handler() and returns: handler