code: def _read_cgroup_stat_file(file_name: str):
      with open(file_name, "r") as cg_file:
          contents = cg_file.read()
      kvs = dict()
      for line in contents.splitlines():
          parts = line.split(" ")
          if len(parts) == 2:
              kvs[parts[0]] = int(parts[1])
      return kvs
  
imports: import logging
  import math
  import os
  import subprocess
  import sys
  import time
  from collections import namedtuple
  from typing import List, Optional
  import psutil
  from .lib import nvutils
  from ._resource import Resource, ZeroResource
  from .utils import get_bool_environ
label_desc: Use image node_id 1 for calling a global function with example usage: _read_cgroup_stat_file(file_name) and returns: kvs