def reshape_compare(node1, node2):
  """Compares two reshape nodes."""
  assert node1["op"] == node2["op"] == "reshape"
  params1, params2 = node1["eqn"].params, node2["eqn"].params
  if params1["dimensions"] != params2["dimensions"]:
    return False
  return True