code: def status(self, status_in):
          
          if isinstance(status_in, PIDStatus):
              status_in = [status_in, ]
          return self.filter(
              self._filtered_pid_class.status.in_(status_in)
          )
docs: Filter the PIDs based on their status.