code: def get_system_total_memory_gb():
      """
      Function to get the total RAM of the running system in GB
      """
  
      # Import packages
      import os
      import sys
  
      # Get memory
      if "linux" in sys.platform:
          with open("/proc/meminfo") as f_in:
              meminfo_lines = f_in.readlines()
              mem_total_line = [
                  line for line in meminfo_lines if "MemTotal" in line
              ][0]
              mem_total = float(mem_total_line.split()[1])
              memory_gb = mem_total / (1024.0**2)
      elif "darwin" in sys.platform:
          mem_str = (
              os.popen("sysctl hw.memsize")
              .read()
              .strip()
              .split(" ")[-1]
          )
          memory_gb = float(mem_str) / (1024.0**3)
      else:
          err_msg = "System platform: %s is not supported"
          raise Exception(err_msg)
  
      # Return memory
      return memory_gb
  
imports: import os
  import numpy
  import threading
  from time import time
  from ..None import config, logging
label_desc: Use image node_id 2 for calling a global function with example usage: get_system_total_memory_gb() and returns: memory_gb