code: def _lpips_compute(
      sum_scores: Tensor,
      total: Union[Tensor, int],
      reduction: Literal["sum", "mean"] = "mean",
  ) -> Tensor:
      return sum_scores / total if reduction == "mean" else sum_scores
  
imports: import inspect
  import os
  from typing import List, NamedTuple, Optional, Tuple, Union
  import torch
  from torch import Tensor, nn
  from typing_extensions import Literal
  from torchmetrics.utilities.imports import _TORCHVISION_AVAILABLE, _TORCHVISION_GREATER_EQUAL_0_13
label_desc: Use image node_id 8 for calling a global function with example usage: _lpips_compute(sum_scores, total, reduction) and returns: unknown