human
Solve the following python programming problem given the following code:
def _fake_get_vsm_md5_hashes(self) : 
    '
        Mock function replacing n1kv_client.Client.list_md5_hashes().

        It would be eventually called from SyncDriver._md5_hash_comparison()
        function.

        :return: Dictionary with all VSM md5 hashes (including consolidated
                 md5) as would have been returned by VSM REST APIs
        ' 
    def calc_md5(resource) : 
        md5 = hashlib.md5 () 
        res_name = (('TEST_VSM_' + resource.split ('_md5') [0].upper ()) + 'S') 
        for uuid in sorted (getattr (self, res_name)) : 
            md5.update (six.b (uuid)) 
return md5.hexdigest () 
res_order = [n1kv_const.NETWORK_PROFILE_MD5, n1kv_const.SUBNET_MD5, n1kv_const.NETWORK_MD5, n1kv_const.PORT_MD5] 
    res_md5 = { res : calc_md5 (res) for res in res_order } 
    consolidated_md5 = hashlib.md5 () 
    for res in vsm_md5_hashes : 
        consolidated_md5.update (six.b (res_md5 [res])) 
res_md5 [n1kv_const.CONSOLIDATED_MD5] = consolidated_md5.hexdigest () 
    vsm_md5_hashes = { 
        'md5_hashes' : { 
            'properties' : res_md5, 
}, 
} 
    return vsm_md5_hashes 

    
    

    Fix the buggy line: for res in vsm_md5_hashes :
assistant
#Here is Python code to fix the buggy line: for res in vsm_md5_hashes :
.

for res in res_order :