code: def write_temp_file(filename, bio_data):
      bio_filename = os.path.splitext(filename)[0] + ".bio"
      with open(bio_filename, "w", encoding="utf-8") as fout:
          fout.write(bio_data)
      process_dataset(bio_filename, filename)
  
imports: import json
  import logging
  import os
  import warnings
  import pytest
  import torch
  from stanza.models import ner_tagger
  from stanza.models.ner.trainer import Trainer
  from stanza.tests import TEST_WORKING_DIR
  from stanza.utils.datasets.ner.prepare_ner_file import process_dataset
label_desc: Use image node_id 2 for calling a global function with example usage: write_temp_file(filename, bio_data) without return types