code: def print_image(
      image: Union[str, Tensor], max_width: int = 96
  ) -> None:
      """Print an image to the terminal.
  
      .. image:: https://github.com/kornia/data/blob/main/print_image.png?raw=true
  
      Args:
          image: path to a valid image file or a tensor.
          max_width: maximum width to print to terminal.
  
      Note:
          Need to use `print_image(...)`.
      """
      if isinstance(image, str):
          img = kornia.io.load_image(image, ImageLoadType.RGB8)
      elif isinstance(image, Tensor):
          img = image
      else:
          raise RuntimeError(
              f"Expect image type to be either Tensor or str. Got {type(image)}."
          )
      print(image_to_string(img, max_width))
  
file_path: kornia/kornia/utils/image_print.py
imports: import re
  from typing import Tuple, Union
  from torch import float16, float32, float64
  import kornia
  from kornia.core import Tensor
  from kornia.core.check import KORNIA_CHECK_IS_IMAGE, KORNIA_CHECK_SHAPE
  from kornia.io import ImageLoadType
label_desc: Use image node_id 6 for calling a global function with example usage: print_image(image, max_width) without return types