code: def GetSubList(self):
      sublist = []
      for (
          key
      ) in self.object.keys():  # self.object not necessarily dict.
          try:
              value = self.object[key]
          except KeyError:
              continue
  
          def setfunction(value, key=key, object=self.object):
              object[key] = value
  
          item = make_objecttreeitem(key + " =", value, setfunction)
          sublist.append(item)
      return sublist
  
imports: import linecache
  import os
  import tkinter
  from idlelib.debugobj import ObjectTreeItem, make_objecttreeitem
  from idlelib.tree import TreeNode, TreeItem, ScrolledCanvas
label_desc: Use image node_id 4 for calling the VariablesTreeItem obj's underlying member method code with example usage: obj.GetSubList() and returns: sublist