code: def test_earlier_schema_version(
      es, caplog, hardcoded_schema_version, warns
  ):
      def test_version(version, warns):
          if warns:
              warning_text = (
                  "The schema version of the saved features"
                  "(%s) is no longer supported by this version "
                  "of featuretools. Attempting to load features ..."
                  % version
              )
          else:
              warning_text = None
  
          _check_schema_version(
              version, es, warning_text, caplog, "log"
          )
  
      test_version(hardcoded_schema_version, warns)
  
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 6 for calling a global function with example usage: test_earlier_schema_version(es, caplog, hardcoded_schema_version, warns) without return types