code: def next_token(self):
      curpos = self.curpos
  
      while curpos < self.len:
          for i, r in enumerate(self.res):
              m = r.match(self.data, curpos)
              if m is None:
                  continue
              else:
                  self.curpos = m.end()
                  return Token(self.tokens[i], m.group(), self.curpos)
          raise SyntaxError(
              "Unknown character at position %d (%s)"
              % (self.curpos, self.data[curpos])
          )
  
imports: import re
  import numpy
label_desc: Use image node_id 3 for calling the Tokenizer obj's underlying member method code with example usage: obj.next_token() and returns: Token