code: def _parse_line(line):
      m = re.match(REGEX, line)
      if not m:
          return None
      (
          static,
          extern,
          capi,
          name,
          def_,
          decl,
          excname,
      ) = m.groups()
      if def_:
          isdecl = False
          if extern or capi:
              raise NotImplementedError(line)
          kind = "static" if static else None
      elif excname:
          name = f"_PyExc_{excname}"
          isdecl = False
          kind = "static"
      else:
          isdecl = True
          if static:
              kind = "static"
          elif extern:
              kind = "extern"
          elif capi:
              kind = "capi"
          else:
              kind = None
      return name, isdecl, kind
  
imports: from collections import namedtuple
  import os.path
  import re
  import textwrap
  from c_common import tables
  from .None import REPO_ROOT
  from ._files import iter_header_files, iter_filenames
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_line(line) and returns: name,  isdecl,  kind, None