code: def test_tensor_to_image(device, input_shape, expected):
      tensor = torch.ones(input_shape).to(device)
      image = kornia.utils.tensor_to_image(tensor)
      assert image.shape == expected
      assert isinstance(image, np.ndarray)
  
file_path: kornia/test/utils/test_image_utils.py
imports: from typing import List
  import numpy
  import pytest
  import torch
  import kornia
  from kornia.testing import assert_close
label_desc: Use image node_id 3 for calling a global function with example usage: test_tensor_to_image(device, input_shape, expected) without return types