def _get_flag_group(h5f, path):
<EOL>if path:<EOL><INDENT>return h5f[path]<EOL><DEDENT>if _is_flag_group(h5f):<EOL><INDENT>return h5f<EOL><DEDENT>try:<EOL><INDENT>path, = _find_flag_groups(h5f)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>return h5f[path]<EOL><DEDENT>raise ValueError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>)<EOL>
Determine the group to use in order to read a flag