code: def get_code(self, timestamp=None):
          
          return generate_twofactor_code_for_time(b64decode(self.shared_secret),
                                                  self.get_time() if timestamp is None else timestamp)
docs: :param timestamp: time to use for code generation
          :type timestamp: int
          :return: two factor code
          :rtype: str