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