code: def dev_file(tmp_path_factory):
      dev_set = DATASET * 2
      dev_filename = tmp_path_factory.mktemp("data") / "dev.json"
      with open(dev_filename, "w", encoding="utf-8") as fout:
          json.dump(dev_set, fout, ensure_ascii=False)
      return dev_filename
  
file_path: stanza/stanza/tests/classifiers/test_data.py
imports: import json
  import pytest
  import stanza.models.classifiers.data
  from stanza.models.classifiers.utils import WVType
  from stanza.models.common.vocab import PAD, UNK
  from stanza.models.constituency.parse_tree import Tree
label_desc: Use image node_id 2 for calling a global function with example usage: dev_file(tmp_path_factory) and returns: dev_filename