def __get_lookup(in_fn, selected_type=None):
lookup_func = None<EOL>if selected_type is not None:<EOL><INDENT>lookup_func = get_lookup_by_filetype(selected_type)<EOL><DEDENT>else:<EOL><INDENT>extension = os.path.splitext(in_fn)[<NUM_LIT:1>]<EOL>lookup_func = get_lookup_by_file_extension(extension)<EOL><DEDENT>assert(lookup_func is not None)<EOL>return lookup_func<EOL>
Determine which lookup func to use based on inpt files and type option.