in flatten_join_nested_file.py [0:0]
def find_tbl_nested_level(dict, tbl):
for k in dict:
if tbl in dict[k]:
lvl = int(k)
found = 1
break
else:
lvl = 0
found = 0
return {'table_nested_level': lvl, 'table_found': found}