code: def removefilter(self, filter):
      # XXX Perhaps should only support popfilter()?
      assert isinstance(filter, Delegator)
      assert filter.delegate is not None
      f = self.top
      if f is filter:
          self.top = filter.delegate
          filter.setdelegate(None)
      else:
          while f.delegate is not filter:
              assert f is not self.bottom
              f.resetcache()
              f = f.delegate
          f.setdelegate(filter.delegate)
          filter.setdelegate(None)
  
file_path: cpython/Lib/idlelib/percolator.py
imports: from idlelib.delegator import Delegator
  from idlelib.redirector import WidgetRedirector
label_desc: Use image node_id 7 for calling the Percolator obj's underlying member method code with example usage: obj.removefilter(filter) without return types