code: def loads(self, name, document):
          
          return self.compiler.compile(name, document).link().surface
docs: Parse and compile the given Thrift document.
  
          :param str name:
              Name of the Thrift document.
          :param str document:
              The Thrift IDL as a string.