class_docstr: Low-level strategy implementation wrapping a Lark grammar.
  
  See ``from_lark`` for details.
class_docstr_tok: ["Low-level","strategy","implementation","wrapping","a","Lark","grammar",".","See","``","from_lark","``","for","details","."]
code: def rule_label(self, name):
      try:
          return self.__rule_labels[name]
      except KeyError:
          return self.__rule_labels.setdefault(
              name, calc_label_from_name(f"LARK:{name}")
          )
  
file_path: catboost/contrib/python/hypothesis/py3/hypothesis/extra/lark.py
imports: from inspect import signature
  from typing import Dict, Optional
  import lark
  from lark.grammar import NonTerminal, Terminal
  from hypothesis import strategies
  from hypothesis.errors import InvalidArgument
  from hypothesis.internal.conjecture.utils import calc_label_from_name
  from hypothesis.internal.validation import check_type
  from hypothesis.strategies._internal.utils import cacheable, defines_strategy
label_desc: Use image node_id 3 for calling the LarkStrategy obj's underlying member method code with example usage: obj.rule_label(name) and returns: self, self