code: def check_dependencies():
      """Check if all the dependencies needed for the execution of this file
      are installed.
      """
  
      exec_path = os.get_exec_path()
      mpi_install = False
      for x in exec_path:
          if os.path.isfile(os.path.join(x, "mpirun")):
              mpi_install = True
              break
      assert (
          mpi_install
      ), "Could not locate the following dependency: MPI. Please install it and try again."
  
      dgl_path = os.environ.get("DGL_HOME", "")
      assert os.path.isdir(
          dgl_path
      ), "Environment variable DGL_HOME not found. Please define the DGL installation path"
  
file_path: dgl/tools/distpartitioning/parmetis_wrapper.py
imports: import argparse
  import logging
  import os
  import platform
  import sys
  from pathlib import Path
  import constants
  from utils import read_json
label_desc: Use image node_id 1 for calling a global function with example usage: check_dependencies() without return types