class_docstr: Converts a numpy image to a PyTorch 4d tensor image.
  
  Args:
      keepdim: If ``False`` unsqueeze the input image to match the shape :math:`(B, H, W, C)`.
code: def forward(self, x: Any) -> Tensor:
      return image_to_tensor(x, keepdim=self.keepdim)
  
file_path: kornia/kornia/utils/image.py
imports: from functools import wraps
  from typing import Any, Callable, List
  import torch
  from torch import nn
  from kornia.core import Tensor
label_desc: Use image node_id 2 for calling the ImageToTensor obj's underlying member method code with example usage: obj.forward(x) and returns: image_to_tensor