code: def process(self):
      
      for path in self._paths:
        if os.path.exists(path):
          self.state.output.append((os.path.basename(path), path))
        else:
          self.state.add_error(
              'Path {0:s} does not exist'.format(str(path)), critical=False)
      if not self.state.output:
        self.state.add_error('No valid paths collected, bailing', critical=True)
docs: Checks whether the paths exists and updates the state accordingly.