code: def _check_schema_version(
      version, es, warning_text, caplog, warning_type=None
  ):
      dictionary = {
          "ft_version": __version__,
          "schema_version": version,
          "entityset": es.to_dictionary(),
          "feature_list": [],
          "feature_definitions": {},
          "primitive_definitions": {},
      }
  
      if warning_type == "warn" and warning_text:
          with pytest.warns(UserWarning) as record:
              FeaturesDeserializer(dictionary)
          assert record[0].message.args[0] == warning_text
      elif warning_type == "log":
          logger = logging.getLogger("featuretools")
          logger.propagate = True
          FeaturesDeserializer(dictionary)
          if warning_text:
              assert warning_text in caplog.text
          else:
              assert not len(caplog.text)
          logger.propagate = False
  
imports: import logging
  from unittest.mock import patch
  import pandas
  import pytest
  from featuretools import AggregationFeature, Feature, IdentityFeature, TransformFeature, __version__
  from featuretools.feature_base.features_deserializer import FeaturesDeserializer
  from featuretools.primitives import Count, Max, MultiplyNumericScalar, NMostCommon, NumberOfCommonWords, NumUnique
  from featuretools.primitives.utils import serialize_primitive
  from featuretools.utils.schema_utils import FEATURES_SCHEMA_VERSION
label_desc: Use image node_id 13 for calling a global function with example usage: _check_schema_version(version, es, warning_text, caplog, warning_type) without return types