code: def adjust_visible(self, node_name, expand=True, keep_state=False):
      if expand:
          if self.all_nodes[node_name]["is_leaf_node"] is True:
              return
          if keep_state:
              self.visible_maps[node_name] = False
          else:
              self.visible_maps[node_name] = False
              current_node = self.all_nodes[node_name]
              for child_name in current_node["children_node"]:
                  self.visible_maps[child_name] = True
      else:
          self.visible_maps[node_name] = True
  
imports: from collections import defaultdict
  from collections import deque
label_desc: Use image node_id 5 for calling the Model obj's underlying member method code with example usage: obj.adjust_visible(node_name, expand, keep_state) without return types