code: def check_all_same_idtype(glist, name):
      """Check all the graphs have the same idtype."""
      if len(glist) == 0:
          return
      idtype = glist[0].idtype
      for i, g in enumerate(glist):
          if g.idtype != idtype:
              raise DGLError(
                  "Expect {}[{}] to have {} type ID, but got {}.".format(
                      name, i, idtype, g.idtype
                  )
              )
  
file_path: dgl/python/dgl/utils/checks.py
imports: from __future__ import absolute_import, division
  from collections.abc import Mapping
  from ..None import backend
  from .._ffi.function import _init_api
  from ..base import DGLError
label_desc: Use image node_id 5 for calling a global function with example usage: check_all_same_idtype(glist, name) without return types