class_docstr: Convert a tensor, ndarray, or PIL Image to :class:`~torchvision.tv_tensors.Image`
  ; this does not scale values.
  
  This transform does not support torchscript.
class_docstr_tok: ["Convert","a","tensor",",","ndarray",",","or","PIL","Image","to",":","class",":","`","~torchvision.tv_tensors.Image","`",";","this","does","not","scale","values",".","This","transform","does","not","support","torchscript","."]
code: def _transform(
      self,
      inpt: Union[torch.Tensor, PIL.Image.Image, np.ndarray],
      params: Dict[str, Any],
  ) -> tv_tensors.Image:
      return F.to_image(inpt)
  
file_path: vision/torchvision/transforms/v2/_type_conversion.py
imports: from typing import Any, Dict, Optional, Union
  import numpy
  import PIL.Image
  import torch
  from torchvision import tv_tensors
  from torchvision.transforms.v2 import functional, Transform
  from torchvision.transforms.v2._utils import is_pure_tensor
label_desc: Use image node_id 1 for calling the ToImage obj's underlying member method code with example usage: obj._transform(inpt, params) and returns: F