class_docstr:   Fundamental data type used to build file system tree structures.
  
    If CHILDREN is None, then the node represents a file. Otherwise, CHILDREN
  is a list of the nodes representing that directory's children.
  
    NAME is simply the name of the file or directory. CONTENTS is a string
  holding the file's contents (if a file).
class_docstr_tok: ["Fundamental","data","type","used","to","build","file","system","tree","structures",".","If","CHILDREN","is","None",",","then","the","node","represents","a","file",".","Otherwise",",","CHILDREN","is","a","list","of","the","nodes","representing","that","directory","'s","children",".","NAME","is","simply","the","name","of","the","file","or","directory",".","CONTENTS","is","a","string","holding","the","file","'s","contents","(","if","a","file",")","."]
docstr:   If the given TreeNode directory NODE contains a child named NAME,
  return the child; else, return None.
docstr_tok: ["If","the","given","TreeNode","directory","NODE","contains","a","child","named","NAME",",","return","the","child",";","else",",","return","None","."]
code: def get_child(self, name):
      """
        If the given TreeNode directory NODE contains a child named NAME,
      return the child; else, return None.
  
      """
      for n in self.children:
          if n.name == name:
              return n
  
imports: import os
  import os.path
  import stat
  import sys
label_desc: Use image node_id 3 for calling the TreeNode obj's underlying member method code with example usage: obj.get_child(name) and returns: n