code: def get_additional_bytes_to_reach_memory_usage_pct(pct: float) -> int:
      used = get_used_memory()
      total = get_system_memory()
      bytes_needed = int(total * pct) - used
      assert (
          bytes_needed > 0
      ), "node has less memory than what is requested"
      return bytes_needed
  
imports: from math import ceil
  import sys
  import time
  import pytest
  import ray
  from ray._private import ray_constants
  import ray._private.gcs_utils
  from ray._private.test_utils import wait_for_condition, raw_metrics
  import numpy
  from ray._private.utils import get_system_memory
  from ray._private.utils import get_used_memory
  from ray._private.state_api_test_utils import verify_failed_task
  from ray.util.state.state_manager import StateDataSourceClient
label_desc: Use image node_id 5 for calling a global function with example usage: get_additional_bytes_to_reach_memory_usage_pct(pct) and returns: bytes_needed