def METHOD_NAME(content: str, hash_generator: Any = None) -> str:
    """
    return a md5 checksum of a given string
    Parameters
    ----------
    content: string
        the string to be hashed
     hash_generator : hashlib._Hash
        The hashing method (hashlib _Hash object) that generates checksum. Defaults to hashlib.md5.
    Returns
    -------
    md5 checksum of content
    """
    if not hash_generator:
        hash_generator = _get_md5()
    hash_generator.update(content.encode("utf-8"))
    return cast(str, hash_generator.hexdigest())