import hashlib


def compute_md5_hash(string):
    """Gets md5 digest from a string."""
    md5_hash = hashlib.md5()   # noqa: S303, W291
    md5_hash.update(string.encode('utf-8'))
    return md5_hash.hexdigest()