code: def checksum(self, file, hashes):
      sha256_hash = hashlib.sha256()
      destination = file
  
      with PathManager.open(destination, "rb") as f:
          print(
              "Starting checksum for {}".format(os.path.basename(file))
          )
          for byte_block in iter(lambda: f.read(65536), b""):
              sha256_hash.update(byte_block)
          if sha256_hash.hexdigest() not in hashes:
              # remove_dir(download_path)
              raise AssertionError(
                  f"Checksum of downloaded file does not match the expected "
                  + "checksum. Please try again."
              )
          else:
              print("Checksum successful")
  
file_path: mmf/mmf_cli/hm_convert.py
imports: import argparse
  import hashlib
  import os
  import subprocess
  import warnings
  import zipfile
  from mmf.utils.configuration import Configuration
  from mmf.utils.download import copy, decompress, move
  from mmf.utils.file_io import PathManager
label_desc: Use image node_id 5 for calling the HMConverter obj's underlying member method code with example usage: obj.checksum(file, hashes) without return types