code: def test_calculate_file_hash():
      with tempfile.TemporaryDirectory() as test_dir:
          test_file_path = os.path.join(test_dir, "test.txt")
          with open(test_file_path, "w") as file:
              file.write("test content")
          hash_value = internal.calculate_file_hash(
              test_file_path, hash_algo="md5"
          )
          expected_hash_value = "9473fdd0d880a43c21b7778d34872157"
          assert expected_hash_value == hash_value
          with pytest.raises(
              ValueError,
              match=re.escape(
                  "Hash algorithm must be one of: ['md5', 'sha1', 'sha224', "
                  + "'sha256', 'sha384', 'sha512'], but got `fake`."
              ),
          ):
              hash_value = internal.calculate_file_hash(
                  test_file_path, hash_algo="fake"
              )
  
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 9 for calling a global function with example usage: test_calculate_file_hash() without return types