code: def check_schema(path, categ_cols_max_values=None):
      schema = get_schema_from_path(path)
      assert set(schema.column_names) == set(
          [
              "user_id",
              "item_id",
              "video_category",
              "gender",
              "age",
              "click",
              "follow",
              "like",
              "share",
              "watching_times",
              "TE_user_id_follow",
              "TE_item_id_follow",
              "TE_user_id_click",
              "TE_item_id_click",
          ]
      )
  
      assert set(
          schema.select_by_tag(Tags.USER_ID).column_names
      ) == set(["user_id"])
      assert set(
          schema.select_by_tag(Tags.ITEM_ID).column_names
      ) == set(["item_id"])
      assert set(
          schema.select_by_tag(Tags.CATEGORICAL).column_names
      ) == set(["user_id", "item_id", "video_category", "gender"])
      target_encoding_feats = [
          "TE_user_id_click",
          "TE_user_id_follow",
          "TE_item_id_click",
          "TE_item_id_follow",
      ]
      assert set(
          schema.select_by_tag(Tags.CONTINUOUS).column_names
      ) == set(["age"] + target_encoding_feats)
      assert set(
          schema.select_by_tag(Tags.BINARY_CLASSIFICATION).column_names
      ) == set(["click", "follow", "like", "share"])
      assert set(
          schema.select_by_tag(Tags.REGRESSION).column_names
      ) == set(["watching_times"])
      assert set(schema.select_by_tag(Tags.TARGET).column_names) == set(
          ["click", "follow", "like", "share", "watching_times"]
      )
  
      if categ_cols_max_values:
          categ_features = schema.select_by_tag(
              Tags.CATEGORICAL
          ).column_names
          for col in categ_features:
              assert (
                  schema[col].int_domain.max
                  == categ_cols_max_values[col]
              )
  
      return schema
  
file_path: Merlin/tests/integration/examples/quick_start/test_preproc.py
imports: import os
  import tempfile
  import cudf
  import numpy
  import pytest
  from examples.quick_start.scripts.preproc.preprocessing import PreprocessingRunner
  from merlin.schema import Tags
  from merlin.schema.io.tensorflow_metadata import TensorflowMetadata
label_desc: Use image node_id 4 for calling a global function with example usage: check_schema(path, categ_cols_max_values) and returns: schema