code: def test_config_ref(config_schema_ref):
      config = {}
      validate(config, str(config_schema_ref))
      assert config["param"]["foo"] == "bar"
      assert config["param"]["bar"] == "yaml"
      assert config["param"]["jsonbar"] == "json"
      # Make sure regular validator works
      config["param"]["bar"] = 1
      config["param"]["jsonbar"] = 2
      from snakemake.exceptions import WorkflowError
  
      with pytest.raises(WorkflowError):
          validate(config, str(config_schema_ref), False)
  
file_path: snakemake/tests/test_schema.py
imports: import json
  import pytest
  from snakemake.utils import validate
  import pandas
label_desc: Use image node_id 8 for calling a global function with example usage: test_config_ref(config_schema_ref) without return types