code: def get_cpu_usage(pid):
      """
      use psutil for cpu memory
      :param pid: str
      :return: int
      """
      try:
          process = psutil.Process(int(pid))
      except psutil.Error:
          logging.error(
              "Failed get process for pid: %s", pid, exc_info=True
          )
          return 0
  
      mem_utilization = process.memory_info()[0]
      return mem_utilization
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_cpu_usage(pid) and returns: mem_utilization, int