#NEWLINE# def GetSubNodeByLocation( self , location ) : #NEWLINE# #INDENT# 'Retrieves a sub scan node based on the location.\n\n    Args:\n      location: the location string in the sub scan node path specification,\n                that should match.\n\n    Return:\n      The sub scan node object (instance of SourceScanNode) or None.\n    ' #NEWLINE# for sub_node in self . sub_nodes : #NEWLINE# #INDENT# sub_node_location = getattr ( sub_node . path_spec , 'location' , '' ) #NEWLINE# if ( location == sub_node_location ) : #NEWLINE# #INDENT# return sub_node