code: def make_graph(self, refresh=False, expand_all=False):
      if refresh is True:
          self.visible_maps = {
              node["name"]: (
                  True if not node["children_node"] else False
              )
              for node in self.all_nodes.values()
          }
          root_node = self.all_nodes["/"]
          for child_name in root_node["children_node"]:
              self.visible_maps[child_name] = True
      if expand_all is True:
          self.visible_maps = {
              node["name"]: (
                  True if not node["children_node"] else False
              )
              for node in self.all_nodes.values()
          }
      self.current_nodes = {
          node_name: self.all_nodes[node_name]
          for node_name in self.get_current_visible_nodes()
      }
      return Graph(self.current_nodes, self.all_vars)
  
imports: from collections import defaultdict
  from collections import deque
label_desc: Use image node_id 2 for calling the Model obj's underlying member method code with example usage: obj.make_graph(refresh, expand_all) and returns: Graph