code: def checkgroupname(self, name, offset, nested):
      if not name.isidentifier():
          msg = "bad character in group name %r" % name
          raise self.error(msg, len(name) + offset)
      if not (self.istext or name.isascii()):
          import warnings
  
          warnings.warn(
              "bad character in group name %a at position %d"
              % (name, self.tell() - len(name) - offset),
              DeprecationWarning,
              stacklevel=nested + 7,
          )
  
imports: from ._constants import *
label_desc: Use image node_id 11 for calling the Tokenizer obj's underlying member method code with example usage: obj.checkgroupname(name, offset, nested) without return types