code: def transe_interaction(
      h: torch.FloatTensor,
      r: torch.FloatTensor,
      t: torch.FloatTensor,
      p: Union[int, str] = 2,
      power_norm: bool = False,
  ) -> torch.FloatTensor:
      """Evaluate the TransE interaction function.
  
      :param h: shape: (`*batch_dims`, dim)
          The head representations.
      :param r: shape: (`*batch_dims`, dim)
          The relation representations.
      :param t: shape: (`*batch_dims`, dim)
          The tail representations.
      :param p:
          The p for the norm.
      :param power_norm:
          Whether to return the powered norm.
  
      :return: shape: batch_dims
          The scores.
      """
      return negative_norm_of_sum(h, r, -t, p=p, power_norm=power_norm)
  
imports: from __future__ import annotations
  import functools
  from typing import Optional, Tuple, Union
  import numpy
  import torch
  from torch import broadcast_tensors, nn
  from .compute_kernel import batched_dot
  from .sim import KG2E_SIMILARITIES
  from ..typing import GaussianDistribution
  from ..utils import clamp_norm, einsum, is_cudnn_error, make_ones_like, negative_norm, negative_norm_of_sum, project_entity, tensor_product, tensor_sum
label_desc: Use image node_id 19 for calling a global function with example usage: transe_interaction(h, r, t, p, power_norm) and returns: negative_norm_of_sum