code: def test_check_dataset_change():
      with tempfile.TemporaryDirectory() as test_dir:
          # Generate directory and record its hash value.
          test_file_path_1 = os.path.join(test_dir, "test_1.txt")
          test_file_path_2 = os.path.join(test_dir, "test_2.txt")
          with open(test_file_path_1, "w") as file:
              file.write("test content")
          with open(test_file_path_2, "w") as file:
              file.write("test contents of directory")
          hash_value = internal.calculate_dir_hash(
              test_dir, hash_algo="md5"
          )
          hash_value_file = "dataset_hash_value.txt"
          hash_value_file_paht = os.path.join(
              test_dir, "preprocessed", hash_value_file
          )
          os.makedirs(
              os.path.join(test_dir, "preprocessed"), exist_ok=True
          )
          with open(hash_value_file_paht, "w") as file:
              file.write(json.dumps(hash_value, indent=4))
  
          # Modify the content of a file.
          with open(test_file_path_2, "w") as file:
              file.write("test contents of directory changed")
  
          assert internal.check_dataset_change(test_dir, "preprocessed")
  
file_path: dgl/tests/python/pytorch/graphbolt/utils/test_internal.py
imports: import json
  import os
  import re
  import tempfile
  import dgl.graphbolt.internal
  import numpy
  import pandas
  import pytest
  import torch
label_desc: Use image node_id 11 for calling a global function with example usage: test_check_dataset_change() without return types