[docs]defexplain(id:str)->None:"""Given an identifier, prints a short explanation of what it represents in the Inseq library. Identifiers are used for attribution methods, aggregators, aggregation functions, and step functions. Example: `explain("attention")` prints the documentation for the attention attribution method. """ifidnotinINSEQ_ID_MAP:raiseValueError(f"Unknown identifier: {id}")doc=INSEQ_ID_MAP[id].__doc__ifdocisNone:print("No documentation is available for this identifier. Please refer to the Inseq documentation for more ""information, or raise an issue on https://github.com/inseq-team/inseq/issues to request documentation ""for this identifier.")print(doc)