class_docstr: Change tensor to PyTorch format for images (B x C x H x W).
  
  Parameters
  ----------
  channels_last : bool
      Use torch.channels_last.
  convert_back_int16 : bool
      Convert to float16.
code: def __init__(self, channels_last=True, convert_back_int16=True):
      super().__init__()
      self.channels_last = channels_last
      self.convert_int16 = convert_back_int16
      self.enable_int16conv = False
  
imports: import torch
  import numpy
  from typing import Callable, Optional, Tuple
  from ..pipeline.allocation_query import AllocationQuery
  from ..pipeline.operation import Operation
  from ..pipeline.state import State
  from dataclasses import replace
label_desc: Use image node_id 1 to create a new ToTorchImage object from inherited base classes: Operation with example: obj = ToTorchImage(channels_last, convert_back_int16)