code: def get_additional_bytes_to_reach_memory_usage_pct(pct: float) -> int:
      node_mem = psutil.virtual_memory()
      used = node_mem.total - node_mem.available
      bytes_needed = node_mem.total * pct - used
      assert (
          bytes_needed > 0
      ), "node has less memory than what is requested"
      return int(bytes_needed)
  
imports: from math import ceil
  import ray
  import time
  import psutil
label_desc: Use image node_id 2 for calling a global function with example usage: get_additional_bytes_to_reach_memory_usage_pct(pct) and returns: int