code: def filter(self, *args, **kwargs):
          
          b = Nornir(**self.__dict__)
          b.inventory = self.inventory.filter(*args, **kwargs)
          return b
docs: See :py:meth:`nornir.core.inventory.Inventory.filter`
  
          Returns:
              :obj:`Nornir`: A new object with same configuration as ``self`` but filtered inventory.