code: def take(self):
          
          with self._lock:
              now = int(time.time())
  
              if now != self.this_sec:
                  self.used_this_sec = 0
                  self.this_sec = now
  
              if self.used_this_sec >= self.traces_per_sec:
                  return False
  
              self.used_this_sec = self.used_this_sec + 1
              return True
docs: Returns True if there are segments left within the
          current second, otherwise return False.