code: def _child(element, child_tagname):
      
      xpath = './%s' % child_tagname
      matching_children = element.xpath(xpath, namespaces=nsmap)
      return matching_children[0] if len(matching_children) else None
docs: Return direct child of *element* having *child_tagname* or :class:`None`
      if no such child element is present.