def importHelper(self, struct):
        m = StrStrHashMap()
        keysAndValues = struct.get(self.__field)
        for i in range(0, len(keysAndValues), 2):
            m[keysAndValues[i]] = keysAndValues[i+1]
        return m
def _restore_vars(v_list, t_list):
  """Restore variables in v_list from t_list."""
  ops = []
  for v, t in zip(v_list, t_list):
    ops.append(v.assign(t))
  return ops