code: def _calc(self, h_re, h_im, t_re, t_im, r_re, r_im):
      return torch.sum(
          h_re * t_re * r_re
          + h_im * t_im * r_re
          + h_re * t_im * r_im
          - h_im * t_re * r_im,
          -1,
      )
  
file_path: OpenKE/openke/module/model/ComplEx.py
imports: import torch
  import torch.nn
  from .Model import Model
label_desc: Use image node_id 2 for calling the ComplEx obj's underlying member method code with example usage: obj._calc(h_re, h_im, t_re, t_im, r_re, r_im) and returns: torch