code: def get_cpu_percent():
      output = str(subprocess.check_output(["top", "-bn1"]))
      cpu_percent = float(
          re.search(r"%Cpu\(s\):\s+([\d.]+)\s+us", output).group(1)
      )
      return cpu_percent
  
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 7 for calling a global function with example usage: get_cpu_percent() and returns: cpu_percent