def get_file_hash(file):
    hasher = hashlib.md5()
    hasher.update(file.read())
    hash_value = hasher.hexdigest()
    return hash_value
Creates an MD5 hash for a given file.
dataset/ETHPy150Open nasa-gibs/onearth/src/test/oe_test_utils.py/get_file_hash