code: def test_write_file_non_ascii(tmpdir):
      fname, content = "日本語(Japanese).bin", b"TorchVision\211\n"
      fpath = os.path.join(tmpdir, fname)
      content_tensor = torch.tensor(list(content), dtype=torch.uint8)
      write_file(fpath, content_tensor)
  
      with open(fpath, "rb") as f:
          saved_content = f.read()
      os.unlink(fpath)
      assert content == saved_content
  
imports: import glob
  import io
  import os
  import sys
  from pathlib import Path
  import numpy
  import pytest
  import torch
  import torchvision.transforms.functional
  from common_utils import assert_equal, needs_cuda
  from PIL import __version__, Image
  from torchvision.io.image import _read_png_16, decode_image, decode_jpeg, decode_png, encode_jpeg, encode_png, ImageReadMode, read_file, read_image, write_file, write_jpeg, write_png
label_desc: Use image node_id 17 for calling a global function with example usage: test_write_file_non_ascii(tmpdir) without return types