def get_child(parent, child_index):
if child_index < <NUM_LIT:0> or child_index >= len(parent.childNodes):<EOL><INDENT>return None<EOL><DEDENT>return parent.childNodes[child_index]<EOL>
Get the child at the given index, or return None if it doesn't exist.