code: def parse_assembly(llvmir, context=None):
      
      if context is None:
          context = get_global_context()
      llvmir = _encode_string(llvmir)
      strbuf = c_char_p(llvmir)
      with ffi.OutputString() as errmsg:
          mod = ModuleRef(
              ffi.lib.LLVMPY_ParseAssembly(context, strbuf, errmsg),
              context)
          if errmsg:
              mod.close()
              raise RuntimeError("LLVM IR parsing error\n{0}".format(errmsg))
      return mod
docs: Create Module from a LLVM IR string