docs: def inventory(self, inventory_name):
          """ Decorator to register filters for given inventory. For a function "abc", it has the same effect
  
          :param inventory_name:
          :return:
  
          .. code-block:: python
  
              tic = CtsTextInventoryCollection()
              latin = CtsTextInventoryMetadata("urn:perseus:latinLit", parent=tic)
              latin.set_label("Classical Latin", "eng")
              dispatcher = CollectionDispatcher(tic)
  
              @dispatcher.inventory("urn:perseus:latinLit")
              def dispatchLatinLit(collection, path=None, **kwargs):
                  if collection.id.startswith("urn:cts:latinLit:"):
                      return True
                  return False
  
          """
          def decorator(f):
              self.add(func=f, inventory_name=inventory_name)
              return f
          return decorator