code: def get_max_rss_bytes(rusage):
      """
      Extract the max RSS value in bytes.
      """
      if not rusage:
          return None
  
      if sys.platform.startswith("linux"):
          # On Linux getrusage() returns ru_maxrss in kilobytes
          # https://man7.org/linux/man-pages/man2/getrusage.2.html
          return rusage.ru_maxrss * 1024
      elif sys.platform == "darwin":
          # on macOS ru_maxrss is in bytes
          return rusage.ru_maxrss
      else:
          # Unknown, just return whatever is here.
          return rusage.ru_maxrss
  
imports: import sys
  import os
  import re
  import time
  import textwrap
  import subprocess
  import itertools
  import random
label_desc: Use image node_id 2 for calling a global function with example usage: get_max_rss_bytes(rusage) and returns: None, unknown, rusage, rusage