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 __init__(self, keepdim: bool = False) -> None:
      super().__init__()
      self.keepdim = 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 1 to create a new ImageToTensor object from inherited base classes: nn with example: obj = ImageToTensor(keepdim)