code: def getNext(self):
      ret = int(time.time())
      if self.__prev is not None and ret <= self.__prev:
          ret = self.__prev + 1
      self.__prev = ret
      return ret
  
imports: import time
  import datetime
  import hmac
  import hashlib
  import requests
  import threading
  from pyalgotrade.utils import dt
  from pyalgotrade.bitstamp import common
  import logging
label_desc: Use image node_id 2 for calling the NonceGenerator obj's underlying member method code with example usage: obj.getNext() and returns: ret