code: def test_save_dir():
      """NOTE: this is demonstrating broken functionality."""
      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_dir"
              run.save(dirname, base_path=tmpdir)
  
imports: import os
  import tempfile
  import wandb
label_desc: Use image node_id 2 for calling a global function with example usage: test_save_dir() without return types