code: def relaxNGNewValidCtxt(self):
          
          ret = libxml2mod.xmlRelaxNGNewValidCtxt(self._o)
          if ret is None:raise treeError('xmlRelaxNGNewValidCtxt() failed')
          __tmp = relaxNgValidCtxt(_obj=ret)
          __tmp.schema = self
          return __tmp
docs: Create an XML RelaxNGs validation context based on the
             given schema