def check_for_dep_in_outputs(dep, verbose, G):
if verbose:<EOL><INDENT>print("<STR_LIT>".format(dep))<EOL><DEDENT>ret_list = []<EOL>for node in G.nodes(data=True):<EOL><INDENT>if "<STR_LIT>" not in node[<NUM_LIT:1>]:<EOL><INDENT>continue<EOL><DEDENT>for out in node[<NUM_LIT:1>]['<STR_LIT>']:<EOL><INDENT>if fnmatch.fnmatch(out, dep):<EOL><INDENT>ret_list.append(node[<NUM_LIT:0>])<EOL>break<EOL><DEDENT><DEDENT><DEDENT>return ret_list<EOL>
Function to help construct_graph() identify dependencies

Args:
    A dependency
    A flag indication verbosity
    A (populated) NetworkX DiGraph

Returns:
    A list of targets that build given dependency