def _NodeShape(data):
  """Helper callback to set default node shapes."""
  node_type = data.get("type", "statement")
  if node_type == "statement":
    return "box"
  elif node_type == "identifier":
    return "ellipse"
  elif node_type == "magic":
    return "doubleoctagon"
  else:
    return ""