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","."]
docstr: Convert a JSON schema to a Llama grammar.
docstr_tok: ["Convert","a","JSON","schema","to","a","Llama","grammar","."]
code: def from_json_schema(
      cls,
      json_schema: str,
      verbose: bool = True,
  ) -> "LlamaGrammar":
      """Convert a JSON schema to a Llama grammar."""
      return cls.from_string(
          json_schema_to_gbnf(json_schema), verbose=verbose
      )
  
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 4 for calling the LlamaGrammar obj's underlying member method code with example usage: obj.from_json_schema(cls, json_schema, verbose) and returns: cls