code: def create_spacy_nlp_component(
      model_name: Text = "en_core_web_md",
      case_sensitive: Optional[bool] = None,
  ) -> SpacyNLP:
      component = SpacyNLP.create(
          {"model": model_name, "case_sensitive": case_sensitive},
          None,
          None,
          None,
      )
      return component
  
file_path: rasa/tests/nlu/test_spacy_utils.py
imports: from typing import Optional, Text
  import pytest
  import spacy.tokens.doc
  from rasa.nlu.constants import DENSE_FEATURIZABLE_ATTRIBUTES, SPACY_DOCS
  from rasa.nlu.model import InvalidModelError
  from rasa.nlu.utils.spacy_utils import SpacyNLP, SpacyModel
  from rasa.shared.importers.importer import TrainingDataImporter
  from rasa.shared.nlu.constants import ACTION_TEXT, RESPONSE, TEXT
  from rasa.shared.nlu.training_data.message import Message
label_desc: Use image node_id 1 for calling a global function with example usage: create_spacy_nlp_component(model_name, case_sensitive) and returns: component