code: def trainable_param(model):
      training = []
      for p in model.parameters():
          if p.requires_grad:
              training.append(p)
      return training
  
file_path: BigDL/python/orca/src/bigdl/orca/torch/utils.py
imports: from torch.utils.data.sampler import Sampler
  import math
  from bigdl.dllib.utils.log4Error import *
  from deprecated import deprecated
label_desc: Use image node_id 1 for calling a global function with example usage: trainable_param(model) and returns: training