class_docstr: :py:func:`parso.load_grammar` returns instances of this class.
  
  Creating custom none-python grammars by calling this is not supported, yet.
class_docstr_tok: [":","py",":","func",":","`","parso.load_grammar","`","returns","instances","of","this","class",".","Creating","custom","none-python","grammars","by","calling","this","is","not","supported",",","yet","."]
code: def __init__(
      self, text, tokenizer, parser=BaseParser, diff_parser=None
  ):
      self._pgen_grammar = generate_grammar(
          text, token_namespace=self._get_token_namespace()
      )
      self._parser = parser
      self._tokenizer = tokenizer
      self._diff_parser = diff_parser
      self._hashed = hashlib.sha256(text.encode("utf-8")).hexdigest()
  
imports: import hashlib
  import os
  import sys
  import pkgutil
  from parso._compatibility import FileNotFoundError, is_pypy
  from parso.pgen2 import generate_grammar
  from parso.utils import split_lines, python_bytes_to_unicode, parse_version_string
  from parso.python.diff import DiffParser
  from parso.python.tokenize import tokenize_lines, tokenize
  from parso.python.token import PythonTokenTypes
  from parso.cache import parser_cache, load_module, try_to_save_module
  from parso.parser import BaseParser
  from parso.python.parser import Parser
  from parso.python.errors import ErrorFinderConfig
  from parso.python import pep8
  from parso.file_io import FileIO, KnownContentFileIO
  from parso.normalizer import RefactoringNormalizer
label_desc: Use image node_id 1 to create a new Grammar object from inherited base classes: object with example: obj = Grammar(text, tokenizer, parser, diff_parser)