code: def serialize_param(param, fit_intercept=False):
      dtype = str(param.dtype).split(".", -1)[-1]
      w = param.tolist()
      intercept = None
      if fit_intercept:
          intercept = w[-1]
          w = w[:-1]
      return {"coef_": w, "intercept_": intercept, "dtype": dtype}
  
imports: import torch
label_desc: Use image node_id 3 for calling a global function with example usage: serialize_param(param, fit_intercept) and returns: dict