code: def is_filtered(self, process):
          
          if self.filter is None:
              # No filter => Not filtered
              return False
  
          if self.filter_key is None:
              # Apply filter on command line and process name
              return self._is_process_filtered(process, key='name') or \
                  self._is_process_filtered(process, key='cmdline')
          else:
              # Apply filter on <key>
              return self._is_process_filtered(process)
docs: Return True if the process item match the current filter
          The proces item is a dict.