code: def test_calculate_dir_hash():
      with tempfile.TemporaryDirectory() as test_dir:
          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"
          )
          expected_hash_value = [
              "56e708a2bdf92887d4a7f25cbc13c555",
              "9473fdd0d880a43c21b7778d34872157",
          ]
          assert len(hash_value) == 2
          for val in hash_value.values():
              assert val in expected_hash_value
  
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 10 for calling a global function with example usage: test_calculate_dir_hash() without return types