def _update_table_fallbacks(self, table_toplevels):
if len(self.elements) <= <NUM_LIT:1>:<EOL><INDENT>return<EOL><DEDENT>def parent_of(toplevel):<EOL><INDENT>for parent_toplevel in table_toplevels:<EOL><INDENT>if toplevel.name.sub_names[:-<NUM_LIT:1>] == parent_toplevel.name.sub_names:<EOL><INDENT>return parent_toplevel<EOL><DEDENT><DEDENT><DEDENT>for entry in table_toplevels:<EOL><INDENT>if entry.name.is_qualified:<EOL><INDENT>parent = parent_of(entry)<EOL>if parent:<EOL><INDENT>child_name = entry.name.without_prefix(parent.name)<EOL>parent.table_element.set_fallback({child_name.sub_names[<NUM_LIT:0>]: entry.table_element})<EOL><DEDENT><DEDENT><DEDENT>
Updates the fallbacks on all the table elements to make relative table access possible.

Raises DuplicateKeysError if appropriate.