code: def load_labels(filename):
      """
      Load label dict from file
  
      Parameters
      ----------
      filename: str
          filename to load DGLGraphs
  
      Returns
      ----------
      labels: dict
          dict of labels stored in file (empty dict returned if no
          label stored)
  
      Examples
      ----------
      Following the example in save_graphs.
  
      >>> from dgl.data.utils import load_labels
      >>> label_dict = load_graphs("./data.bin")
  
      """
      # if it is local file, do some sanity check
      check_local_file_exists(filename)
  
      version = _CAPI_GetFileVersion(filename)
      if version == 1:
          return load_labels_v1(filename)
      elif version == 2:
          return load_labels_v2(filename)
      else:
          raise Exception("Invalid DGL Version Number")
  
imports: from __future__ import absolute_import
  import os
  from ..None import backend
  from .._ffi.function import _init_api
  from .._ffi.object import ObjectBase, register_object
  from ..base import dgl_warning, DGLError
  from ..heterograph import DGLGraph
  from .heterograph_serialize import save_heterographs
label_desc: Use image node_id 7 for calling a global function with example usage: load_labels(filename) and returns: load_labels_v1, load_labels_v2