code: def try_import_spacy():
      try:
          import spacy  # pylint: disable=import-outside-toplevel
          from pkg_resources import (
              parse_version,
          )  # pylint: disable=import-outside-toplevel
  
          assert parse_version(spacy.__version__) >= parse_version(
              "2.0.0"
          ), "We only support spacy>=2.0.0"
      except ImportError:
          raise ImportError(
              "spaCy is not installed. You must install spaCy in order to use the "
              "SpacyTokenizer. You can refer to the official installation guide "
              "in https://spacy.io/usage/."
          )
      return spacy
  
file_path: gluon-nlp/src/gluonnlp/utils/lazy_imports.py
label_desc: Use image node_id 5 for calling a global function with example usage: try_import_spacy() and returns: spacy