code: def read_file(path: str) -> torch.Tensor:
      """
      Reads and outputs the bytes contents of a file as a uint8 Tensor
      with one dimension.
  
      Args:
          path (str): the path to the file to be read
  
      Returns:
          data (Tensor)
      """
      if not torch.jit.is_scripting() and not torch.jit.is_tracing():
          _log_api_usage_once(read_file)
      data = torch.ops.image.read_file(path)
      return 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 1 for calling a global function with example usage: read_file(path) and returns: data