import hashlib


def get_md5(location):
  """ Get a file's MD5 checksum.

  Args:
    location: A string specifying the location of the file to check.
  Returns:
    A string containing the checksum with hexidecimal encoding.
  """
  md5 = hashlib.md5()
  chunk_size = 64 * 1024
  with open(location, 'rb') as source:
    chunk = source.read(chunk_size)
    while len(chunk) > 0:
      md5.update(chunk)
      chunk = source.read(chunk_size)

  return md5.hexdigest()