code: def test_gensim_model_caching_in_pipeline():
      """
      Checking whether the pipeline caches the loading of gensim models after a first
      Doc instance requires it.
      """
      custom_steps = STEPS.copy()
      custom_steps.append(
          (
              "GensimDocumentEmbedding",
              {
                  "model_mapping": {
                      "nl": "tests/models/gensim_test_nl.kv",
                      "en": "tests/models/gensim_test_en.kv",
                  }
              },
          )
      )
  
      test_pipe = Pipeline(custom_steps, **PIPELINE_DEF_KWARGS)
      test_pipe(TEXT)
      # Assert that something is in the gensim vectors attribute
      assert len(test_pipe._gensim_vectors) == 1
  
file_path: textpipe/tests/test_pipeline.py
imports: import tempfile
  import pytest
  import spacy
  from textpipe.pipeline import Pipeline
label_desc: Use image node_id 11 for calling a global function with example usage: test_gensim_model_caching_in_pipeline() without return types