class_docstr: Keeps reference counts of all the arguments, so that they are not
  garbage collected by Python.
class_docstr_tok: ["Keeps","reference","counts","of","all","the","arguments",",","so","that","they","are","not","garbage","collected","by","Python","."]
code: def reset(self) -> None:
      if self.grammar is not None:
          llama_cpp.llama_grammar_free(self.grammar)
      self.init()
  
imports: from pathlib import Path
  import sys
  from ctypes import *
  from enum import Enum
  from itertools import islice
  from typing import Any, Callable, Dict, Generic, List, Optional, OrderedDict, TextIO, Tuple, TypeVar, Union, overload
  import llama_cpp.llama_cpp
  import json
  import re
  from typing import List, Optional
label_desc: Use image node_id 7 for calling the LlamaGrammar obj's underlying member method code with example usage: obj.reset() without return types