langchain/callbacks/utils.py/import_textstat
def import_textstat() -> Any:
    try:
        import textstat
    except ImportError:
        raise ImportError(
            "This callback manager requires the `textstat` python "
            "package installed. Please install it with `pip install textstat`"
        )
    return textstat