class_docstr: SAX driver for the pyexpat C module.
class_docstr_tok: ["SAX","driver","for","the","pyexpat","C","module","."]
code: def start_element_ns(self, name, attrs):
      pair = name.split()
      if len(pair) == 1:
          # no namespace
          pair = (None, name)
      elif len(pair) == 3:
          pair = pair[0], pair[1]
      else:
          # default namespace
          pair = tuple(pair)
  
      newattrs = {}
      qnames = {}
      for aname, value in attrs.items():
          parts = aname.split()
          length = len(parts)
          if length == 1:
              # no namespace
              qname = aname
              apair = (None, aname)
          elif length == 3:
              qname = "%s:%s" % (parts[2], parts[1])
              apair = parts[0], parts[1]
          else:
              # default namespace
              qname = parts[1]
              apair = tuple(parts)
  
          newattrs[apair] = value
          qnames[apair] = qname
  
      self._cont_handler.startElementNS(
          pair, None, AttributesNSImpl(newattrs, qnames)
      )
  
imports: from xml.sax._exceptions import *
  from xml.sax.handler import feature_validation, feature_namespaces
  from xml.sax.handler import feature_namespace_prefixes
  from xml.sax.handler import feature_external_ges, feature_external_pes
  from xml.sax.handler import feature_string_interning
  from xml.sax.handler import property_xml_string, property_interning_dict
  from xml.sax import xmlreader, saxutils, handler
label_desc: Use image node_id 21 for calling the ExpatParser obj's underlying member method code with example usage: obj.start_element_ns(name, attrs) without return types