def METHOD_NAME(state_dict: Dict[str, Any]):
    hashables = []
    for piece in sorted(state_dict.items()):
        if isinstance(piece[1], (np.ndarray, torch.Tensor, nn.Parameter)):
            hashables.append(piece[0])
            if not isinstance(piece[1], np.ndarray):
                p1 = piece[1].data.cpu().numpy()
            else:
                p1 = piece[1]
            hashables.append(int(hashlib.md5(p1.tobytes()).hexdigest(), 16,))
        else:
            hashables.append(md5_hash_str_as_int(str(piece)))
    return md5_hash_str_as_int(str(hashables))