code: def check_valid_idtype(idtype):
      """Check whether the value of the idtype argument is valid (int32/int64)
  
      Parameters
      ----------
      idtype : data type
          The framework object of a data type.
      """
      if idtype not in [None, F.int32, F.int64]:
          raise DGLError(
              "Expect idtype to be a framework object of int32/int64, "
              "got {}".format(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 10 for calling a global function with example usage: check_valid_idtype(idtype) without return types