<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_add(parent, idx, value):
 """Add an item to a list if it doesn't exist."""

  lst = get_child(parent, idx)
  if value not in lst:
    lst.append(value)