code: def regularization(self, data):
      batch_h = data["batch_h"]
      batch_t = data["batch_t"]
      batch_r = data["batch_r"]
      h_re = self.ent_re_embeddings(batch_h)
      h_im = self.ent_im_embeddings(batch_h)
      t_re = self.ent_re_embeddings(batch_t)
      t_im = self.ent_im_embeddings(batch_t)
      r_re = self.rel_re_embeddings(batch_r)
      r_im = self.rel_im_embeddings(batch_r)
      regul = (
          torch.mean(h_re**2)
          + torch.mean(h_im**2)
          + torch.mean(t_re**2)
          + torch.mean(t_im**2)
          + torch.mean(r_re**2)
          + torch.mean(r_im**2)
      ) / 6
      return regul
  
file_path: OpenKE/openke/module/model/ComplEx.py
imports: import torch
  import torch.nn
  from .Model import Model
label_desc: Use image node_id 4 for calling the ComplEx obj's underlying member method code with example usage: obj.regularization(data) and returns: regul