code: def getItems(self, sort=False, reverse=False,  selector=None):
          
          selector = (lambda fgi: fgi.isValid) if selector is None else selector
          _container = {'_': self.container}
          return _getItems(_container, '_', sort, reverse, selector)
docs: #TODO: docstring