code: def get_parameters(self, mode="numpy", param_dict=None):
      all_param_dict = self.state_dict()
      if param_dict == None:
          param_dict = all_param_dict.keys()
      res = {}
      for param in param_dict:
          if mode == "numpy":
              res[param] = all_param_dict[param].cpu().numpy()
          elif mode == "list":
              res[param] = all_param_dict[param].cpu().numpy().tolist()
          else:
              res[param] = all_param_dict[param]
      return res
  
file_path: OpenKE/openke/module/BaseModule.py
imports: import torch
  import torch.nn
  import os
  import json
  import numpy
label_desc: Use image node_id 6 for calling the BaseModule obj's underlying member method code with example usage: obj.get_parameters(mode, param_dict) and returns: res