code: def write_file(filename: str, data: torch.Tensor) -> None:
      """
      Writes the contents of an uint8 tensor with one dimension to a
      file.
  
      Args:
          filename (str): the path to the file to be written
          data (Tensor): the contents to be written to the output file
      """
      if not torch.jit.is_scripting() and not torch.jit.is_tracing():
          _log_api_usage_once(write_file)
      torch.ops.image.write_file(filename, data)
  
file_path: vision/torchvision/io/image.py
imports: from enum import Enum
  from warnings import warn
  import torch
  from ..extension import _load_library
  from ..utils import _log_api_usage_once
label_desc: Use image node_id 2 for calling a global function with example usage: write_file(filename, data) without return types