def get_config_hash(config, force_bounce=None):
    """Create an MD5 hash of the configuration dictionary to be sent to
    Marathon. Or anything really, so long as str(config) works. Returns
    the first 8 characters so things are not really long.

    :param config: The configuration to hash
    :param force_bounce: a timestamp (in the form of a string) that is appended before hashing
                         that can be used to force a hash change
    :returns: A MD5 hash of str(config)
    """
    hasher = hashlib.md5()
    hasher.update(json.dumps(config, sort_keys=True) + (force_bounce or ''))
    return "config%s" % hasher.hexdigest()[:8]
dataset/ETHPy150Open Yelp/paasta/paasta_tools/utils.py/get_config_hash/original