code: def regularization(self, data):
      batch_h = data["batch_h"]
      batch_t = data["batch_t"]
      batch_r = data["batch_r"]
      h = self.ent_embeddings(batch_h)
      t = self.ent_embeddings(batch_t)
      r = self.rel_embeddings(batch_r)
      r_inv = self.rel_inv_embeddings(batch_r)
      regul = (
          torch.mean(h**2)
          + torch.mean(t**2)
          + torch.mean(r**2)
          + torch.mean(r_inv**2)
      ) / 4
      return regul
  
file_path: OpenKE/openke/module/model/SimplE.py
imports: import torch
  import torch.nn
  from .Model import Model
label_desc: Use image node_id 5 for calling the SimplE obj's underlying member method code with example usage: obj.regularization(data) and returns: regul