code: def params_to_string(params_num, units=None, precision=2):
      if units is None:
          if params_num // 10**6 > 0:
              return str(round(params_num / 10**6, 2)) + " M"
          elif params_num // 10**3:
              return str(round(params_num / 10**3, 2)) + " k"
          else:
              return str(params_num)
      else:
          if units == "M":
              return (
                  str(round(params_num / 10.0**6, precision))
                  + " "
                  + units
              )
          elif units == "K":
              return (
                  str(round(params_num / 10.0**3, precision))
                  + " "
                  + units
              )
          else:
              return str(params_num)
  
imports: import time
  import torch
  import torch.nn
  import torch.nn.functional
  from functools import partial
  from typing import List, Optional
  from collections import OrderedDict
  import numpy
label_desc: Use image node_id 40 for calling a global function with example usage: params_to_string(params_num, units, precision) and returns: unknown, unknown, unknown, str, unknown, str