code: def format_grammar(self):
      return "\n".join(
          (f"{name} ::= {rule}" for name, rule in self._rules.items())
      )
  
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 5 for calling the SchemaConverter obj's underlying member method code with example usage: obj.format_grammar() and returns: str