def _is_metadata_of(group, parent_group):
if group._v_depth <= parent_group._v_depth:<EOL><INDENT>return False<EOL><DEDENT>current = group<EOL>while current._v_depth > <NUM_LIT:1>:<EOL><INDENT>parent = current._v_parent<EOL>if parent == parent_group and current._v_name == '<STR_LIT>':<EOL><INDENT>return True<EOL><DEDENT>current = current._v_parent<EOL><DEDENT>return False<EOL>
Check if a given group is a metadata group for a given parent_group.