code: def json_bar_schema(schemadir):
      p = schemadir.join("bar.schema.json")
      p.write(json.dumps(BAR_JSON_SCHEMA))
      return p
  
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 3 for calling a global function with example usage: json_bar_schema(schemadir) and returns: p