code: def test_save_file_in_dir():
      with tempfile.TemporaryDirectory() as tmpdir:
          dirname = os.path.join(tmpdir, "newdir")
          fname = os.path.join(tmpdir, "newdir", "newfile.txt")
          os.mkdir(dirname)
          write_file(fname)
          with wandb.init() as run:
              run.config.id = "save_file_in_dir"
              run.save(fname, base_path=tmpdir)
  
imports: import os
  import tempfile
  import wandb
label_desc: Use image node_id 3 for calling a global function with example usage: test_save_file_in_dir() without return types