def is_contained_in(pe_pe, root):
if not pe_pe:<EOL><INDENT>return False<EOL><DEDENT>if type(pe_pe).__name__ != '<STR_LIT>':<EOL><INDENT>pe_pe = one(pe_pe).PE_PE[<NUM_LIT>]()<EOL><DEDENT>ep_pkg = one(pe_pe).EP_PKG[<NUM_LIT>]()<EOL>c_c = one(pe_pe).C_C[<NUM_LIT>]()<EOL>if root in [ep_pkg, c_c]:<EOL><INDENT>return True<EOL><DEDENT>elif is_contained_in(ep_pkg, root):<EOL><INDENT>return True<EOL><DEDENT>elif is_contained_in(c_c, root):<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Determine if a PE_PE is contained within a EP_PKG or a C_C.