code: def _validate_data_length(data_dict):
      len_dict = {k: len(v) for k, v in data_dict.items()}
      lst = list(len_dict.values())
      res = lst.count(lst[0]) == len(lst)
      if not res:
          raise DGLError(
              "All data are required to have same length while some of them does not. Length of data={}".format(
                  str(len_dict)
              )
          )
  
imports: import ast
  import os
  from typing import Callable, List, Optional
  import numpy
  import pandas
  import pydantic
  import yaml
  from ..None import backend
  from ..base import dgl_warning, DGLError
  from ..convert import heterograph
label_desc: Use image node_id 2 for calling a global function with example usage: _validate_data_length(data_dict) without return types