code: def _solarize(
      video: torch.Tensor, factor: float, **kwargs
  ) -> torch.Tensor:
      """
      Solarize an video by inverting all pixel values above a threshold.
  
      Args:
          video (torch.Tensor): Video tensor with shape (T, C, H, W).
      """
      if video.dtype == torch.uint8:
          return torchvision.transforms.functional.solarize(
              video, int(factor * 255.0)
          )
      else:
          return torchvision.transforms.functional.solarize(
              video, factor
          )
  
imports: from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import torch
  import torchvision
  from torch import Tensor
  from torchvision.transforms.functional import InterpolationMode
label_desc: Use image node_id 6 for calling a global function with example usage: _solarize(video, factor) and returns: torchvision, torchvision