class_docstr: A node object.
class_docstr_tok: ["A","node","object","."]
docstr: Flatten tree structure to a one level dictionary.
  
  Args:
      d (dict, optional): output dictionary to update
  
  Returns:
      dict: Node.name -> Node. The returned dictionary includes the
            current Node and all its children.
docstr_tok: ["Flatten","tree","structure","to","a","one","level","dictionary",".","Args",":","d","(","dict",",","optional",")",":","output","dictionary","to","update","Returns",":","dict",":","Node.name","-",">","Node",".","The","returned","dictionary","includes","the","current","Node","and","all","its","children","."]
code: def flatten(self, d=None):
      """Flatten tree structure to a one level dictionary.
  
      Args:
          d (dict, optional): output dictionary to update
  
      Returns:
          dict: Node.name -> Node. The returned dictionary includes the
                current Node and all its children.
  
      """
      if d is None:
          d = {}
      if self.name is not None:
          d[self.name] = self
      for child in self.children:
          child.flatten(d=d)
      return d
  
imports: from satpy.utils import get_logger
label_desc: Use image node_id 4 for calling the Node obj's underlying member method code with example usage: obj.flatten(d) and returns: d