code: def test_image_to_tensor_keep_dtype(input_dtype, expected_dtype):
      image = np.ones((1, 3, 4, 5), dtype=input_dtype)
      tensor = kornia.image_to_tensor(image)
      assert tensor.dtype == expected_dtype
  
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 1 for calling a global function with example usage: test_image_to_tensor_keep_dtype(input_dtype, expected_dtype) without return types