code: def require_spacy_model(model):
      """
      Decorator marking a test that requires a spacy model.
  
      These tests are skipped when they aren't installed.
      """
  
      def _require_spacy_model(test_case):
          try:
              import spacy  # noqa F401
  
              spacy.load(model)
          except ImportError:
              return unittest.skip("test requires spacy")(test_case)
          except OSError:
              return unittest.skip(
                  "test requires spacy model '{}'".format(model)
              )(test_case)
          else:
              return test_case
  
      return _require_spacy_model
  
imports: import asyncio
  import importlib.metadata
  import os
  import re
  import sys
  import tempfile
  import unittest
  from contextlib import contextmanager
  from copy import deepcopy
  from distutils.util import strtobool
  from enum import Enum
  from importlib.util import find_spec
  from pathlib import Path
  from unittest.mock import patch
  import pyarrow
  import pytest
  import requests
  from packaging import version
  from datasets import config
label_desc: Use image node_id 13 for calling a global function with example usage: require_spacy_model(model) and returns: _require_spacy_model, test_case, unittest, unittest