code: def check_all_same_schema(schemas, name):
      """Check the list of schemas are the same."""
      if len(schemas) == 0:
          return
  
      for i, schema in enumerate(schemas):
          if schema != schemas[0]:
              raise DGLError(
                  "Expect all graphs to have the same schema on {}, "
                  "but graph {} got\n\t{}\nwhich is different from\n\t{}.".format(
                      name, i, schema, schemas[0]
                  )
              )
  
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 8 for calling a global function with example usage: check_all_same_schema(schemas, name) without return types