code: def get_rss(memory_info):
      """Get the estimated non-shared memory usage from psutil memory_info."""
      mem = memory_info.rss
      # OSX doesn't have the shared attribute
      if hasattr(memory_info, "shared"):
          mem -= memory_info.shared
      return mem
  
file_path: ray/python/ray/_private/memory_monitor.py
imports: import logging
  import os
  import platform
  import sys
  import time
  import ray
  import psutil
label_desc: Use image node_id 1 for calling a global function with example usage: get_rss(memory_info) and returns: mem