docstr: covnert image to tensor and optionally normalize with Imagenet means and stds
docstr_tok: ["covnert","image","to","tensor","and","optionally","normalize","with","Imagenet","means","and","stds"]
code: def _transforms(self) -> torchvision.transforms.Compose:
      """
      covnert image to tensor and optionally normalize with Imagenet means and stds
      """
      totensor = [ToTensor()]
      normalize = (
          [Normalize(self.video_means, self.video_stds)]
          if self.normalize
          else []
      )
      return Compose(totensor + normalize)
  
file_path: NeuralCompression/projects/torch_vct/datamodules/uvg.py
imports: from typing import Optional
  import torch
  import torch.utils.data
  import torchvision
  from datamodules.video_data_api import VideoDataset
  from pytorch_lightning import LightningDataModule
  from pytorchvideo.transforms import Normalize
  from torchvision.transforms import Compose, ToTensor
label_desc: Use image node_id 3 for calling the UVGDataModule obj's underlying member method code with example usage: obj._transforms() and returns: Compose