code: def test_percent_used_mem_on_dev(backend_fw):
      with BackendHandler.update_backend(backend_fw) as ivy_backend:
          devices = _get_possible_devices()
  
          for device in devices:
              used = ivy_backend.percent_used_mem_on_dev(
                  ivy_backend.Device(device)
              )
              assert 0 <= used <= 100
  
              # Same as test_used_mem_on_dev, but using percent of total memory as metric
              # function
              _ram_array_and_clear_test(
                  lambda: ivy_backend.percent_used_mem_on_dev(
                      device, process_specific=True
                  ),
                  device=device,
              )
  
imports: import io
  import multiprocessing
  import os
  import re
  import shutil
  import sys
  import warnings
  import numpy
  import psutil
  import subprocess
  from hypothesis import strategies, assume
  import ivy
  import ivy_tests.test_ivy.helpers
  import ivy_tests.test_ivy.helpers.globals
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
label_desc: Use image node_id 22 for calling a global function with example usage: test_percent_used_mem_on_dev(backend_fw) without return types